fixed some mess with symbols/scope
authorMihai Bazon <mihai@bazon.net>
Tue, 11 Sep 2012 12:42:28 +0000 (15:42 +0300)
committerMihai Bazon <mihai@bazon.net>
Tue, 11 Sep 2012 12:42:28 +0000 (15:42 +0300)
commit8e82d8d94cd60f7423ee61032a30a35222680dc3
treeac239b824ebf268ffae0444900a489ababd40ea7
parentda407d46c65eeaf4599b0b50fc0a8ab6ba28ecdf
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
bin/uglifyjs2
lib/ast.js
lib/output.js
lib/scope.js
lib/utils.js
tmp/test-node.js