define AST_Node.from_mozilla_ast(ast)
authorMihai Bazon <mihai@bazon.net>
Wed, 3 Oct 2012 17:03:17 +0000 (20:03 +0300)
committerMihai Bazon <mihai@bazon.net>
Wed, 3 Oct 2012 17:03:17 +0000 (20:03 +0300)
commit2bd8a118c273853848e4231c98f833757dda18b0
tree0bfa1124e00d66f4d98d1c4c0646168db619e803
parent42ce7ed6067b45afa244ec96f1c1a766a8f98ffe
define AST_Node.from_mozilla_ast(ast)

returns an UglifyJS2 AST given a Mozilla AST.  Still needs some work to do
(need to create specific nodes like AST_SymbolRef, AST_SymbolLambda
etc. instead of base AST_Symbol, in order for the mangler/compressor to work
properly)
lib/mozilla-ast.js [new file with mode: 0644]
tools/node.js