diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-11 15:42:28 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-11 15:42:28 +0300 |
commit | 8e82d8d94cd60f7423ee61032a30a35222680dc3 (patch) | |
tree | ac239b824ebf268ffae0444900a489ababd40ea7 /bin/uglifyjs2 | |
parent | da407d46c65eeaf4599b0b50fc0a8ab6ba28ecdf (diff) | |
download | tracifyjs-8e82d8d94cd60f7423ee61032a30a35222680dc3.tar.gz tracifyjs-8e82d8d94cd60f7423ee61032a30a35222680dc3.zip |
fixed some mess with symbols/scope
- all symbols now have a `thedef` property which is a SymbolDef object,
instead of the `uniq` that we had before (pointing to the first occurrence
of the name as declaration).
- for undeclared symbols we still create a SymbolDef object in the toplevel
scope but mark it "undeclared"
- we can now call figure_out_scope after squeezing, which is useful in order
not to mangle names that were dropped by the squeezer
Diffstat (limited to 'bin/uglifyjs2')
-rwxr-xr-x | bin/uglifyjs2 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/uglifyjs2 b/bin/uglifyjs2 index b3788364..0eb0e158 100755 --- a/bin/uglifyjs2 +++ b/bin/uglifyjs2 @@ -73,6 +73,7 @@ UglifyJS.base54.sort(); files.forEach(do_file_3); if (ARGS.v) { sys.error("BASE54 digits: " + UglifyJS.base54.get()); + //sys.error("Frequency: " + sys.inspect(UglifyJS.base54.freq())); } output = output.get(); |