diff options
Diffstat (limited to 'tmp/test-node.js')
-rwxr-xr-x | tmp/test-node.js | 10 |
1 files changed, 9 insertions, 1 deletions
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 })); |