Skip to content
This repository was archived by the owner on Mar 29, 2023. It is now read-only.

Commit b1541e9

Browse files
committed
use inspector to show more details
1 parent 608b66e commit b1541e9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/debug.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
]
1515
}
1616
*/
17+
const util = require('util');
1718
const parser = require("../src/index");
1819
const ast = parser.parseEval(`
19-
call();
20-
Foo::$var;
20+
true;
2121
`, {
2222
parser: {
2323
debug: true
2424
}
2525
}
2626
);
27-
console.log(ast);
27+
console.log(
28+
util.inspect(ast, false, 5, true)
29+
);

0 commit comments

Comments
 (0)