From da407d46c65eeaf4599b0b50fc0a8ab6ba28ecdf Mon Sep 17 00:00:00 2001 From: Mihai Bazon Date: Tue, 11 Sep 2012 13:15:55 +0300 Subject: checkpoint - discard statements with no side effects (unsafe? could be) - safer hoist_vars (needs some revamping of scope/mangling) --- tmp/test-node.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tmp') diff --git a/tmp/test-node.js b/tmp/test-node.js index 85dc1b1a..4da5e9ff 100755 --- a/tmp/test-node.js +++ b/tmp/test-node.js @@ -10,5 +10,13 @@ var code = fs.readFileSync(filename, "utf8"); var ast = UglifyJS.parse(code); ast.figure_out_scope(); +ast = ast.squeeze(UglifyJS.Compressor()); + ast.compute_char_frequency(); -console.log(UglifyJS.base54.get().join(",")); +UglifyJS.base54.sort(); + +ast.figure_out_scope(); +ast.mangle_names(); + +sys.error(UglifyJS.base54.get()); +sys.print(ast.print_to_string({ beautify: true })); -- cgit v1.2.3 ripts Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/tests/cve-sample.xml
AgeCommit message (Expand)Author