forked from irelance/jsc-decompile-mozjs-34
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscan.php
35 lines (32 loc) · 891 Bytes
/
scan.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
/**
* Created by PhpStorm.
* User: irelance
* Date: 2018/10/10
* Time: 17:51
*/
include 'vendor/autoload.php';
$decompile = new Irelance\Mozjs34\Decompile($argv[1]);
$decompile->run();
//$decompile->runResult();
$contexts = $decompile->getContexts();
foreach ($contexts as $index => $context) {
//if ($index==0) {
echo '==================================' . $index . '==================================S', CLIENT_EOL;
/* @var \Irelance\Mozjs34\Context $context */
$context->printProperties([
//'Summaries',
'Atoms',
'Operations',
'Argv',
//'Content',
'Nodes',
'Consts',
//'Objects',
'Regexps',
//'TryNote',
//'ScopeNote',
]);
echo '==========================================================================E', CLIENT_EOL;
//}
}