forked from irelance/jsc-decompile-mozjs-34
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.php
34 lines (32 loc) · 934 Bytes
/
run.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
<?php
/**
* Created by PhpStorm.
* User: irelance
* Date: 2017/10/1
* Time: 上午10:47
*/
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;
//}
}