Created
October 30, 2011 15:46
-
-
Save ariya/1326043 to your computer and use it in GitHub Desktop.
testing parse-js from UglifyJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"toplevel", | |
[ | |
[ | |
{ | |
"name": "defun", | |
"start": { | |
"type": "name", | |
"value": "answer", | |
"line": 1, | |
"col": 9, | |
"pos": 85, | |
"nlb": false, | |
"comments_before": [] | |
}, | |
"end": { | |
"type": "punc", | |
"value": "}", | |
"line": 1, | |
"col": 32, | |
"pos": 108, | |
"nlb": false, | |
"comments_before": [] | |
} | |
}, | |
"answer", | |
[], | |
[ | |
[ | |
{ | |
"name": "return", | |
"start": { | |
"type": "keyword", | |
"value": "return", | |
"line": 1, | |
"col": 20, | |
"pos": 96, | |
"nlb": false, | |
"comments_before": [] | |
}, | |
"end": { | |
"type": "punc", | |
"value": ";", | |
"line": 1, | |
"col": 29, | |
"pos": 105, | |
"nlb": false, | |
"comments_before": [] | |
} | |
}, | |
[ | |
{ | |
"name": "num", | |
"start": { | |
"type": "num", | |
"value": 42, | |
"line": 1, | |
"col": 27, | |
"pos": 103, | |
"nlb": false, | |
"comments_before": [] | |
}, | |
"end": { | |
"type": "num", | |
"value": 42, | |
"line": 1, | |
"col": 27, | |
"pos": 103, | |
"nlb": false, | |
"comments_before": [] | |
} | |
}, | |
42 | |
] | |
] | |
] | |
] | |
] | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Answer to the Ultimate Question of Life, the Universe, and Everything */ | |
function answer() { return 42; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment