aboutsummaryrefslogtreecommitdiff
path: root/lib/mozilla-ast.js
AgeCommit message (Collapse)Author
2017-05-15fix & improve coverage of `estree` (#1935)Alex Lam S.L
- fix `estree` conversion of getter/setter - fix non-directive literal in `to_mozilla_ast()` - revamp `test/mozilla-ast.js` - reuse `test/ufuzz.js` for code generation - use `acorn.parse()` for creating `estree` - extend `test/ufuzz.js` for `acorn` workaround - catch variable redefinition - non-trivial literal as directive - adjust options for tolerance Miscellaneous - optional semi-colon when parsing directives fixes #1914 closes #1915
2017-05-12remove support for `const` (#1910)Alex Lam S.L
As this is not part of ES5.
2017-04-12convert `AST_Seq` from binary tree to array (#1460)Alex Lam S.L
- rename `AST_Seq` to `AST_Sequence` - raise default sequences_limit from 200 to 800
2016-07-03Don't convert all strings to directives from moz-astAnthony Van de Gejuchte
2016-06-30Fix spidermonkey AST (ESTree) export and import, Array holeskzc
Fixes: #1156 #1161 Also add test to exercise Uglify after spidermonkey export/import of itself.
2015-11-12Fix output for "use asm" code from SpiderMonkey ASTMihai Bazon
(will only work properly if the SM tree contains "raw" properties for Literal number nodes)
2015-11-02simplify mozilla AST RegExpLiteral token parse and handle corner cases of ↵kzc
regex.pattern better
2015-11-02Have mozilla AST RegExpLiteral parser use regex.pattern and regex.flags ↵kzc
rather than non-standard `raw` property.
2015-11-01rename To_Moz_Literal to To_Moz_RegExpkzc
2015-11-01Fixed RegExp literal in mozilla AST generation/output and added a ↵kzc
--dump-spidermonkey-ast flag
2015-09-24Fix mozilla-ast after module loading changesMihai Bazon
Need to explicitly qualify stuff now, since it's not evaluated in some global scope. Ref #636
2015-01-06Location fix for Mozilla AST start token.Ingvar Stepanyan
2015-01-06Track ending lines/columns; fix end locations in Mozilla AST.Ingvar Stepanyan
2014-08-03Added generative testing for AST conversions.Ingvar Stepanyan
2014-08-03SpiderMonkey `Identifier` nodes should contain mangled names.Ingvar Stepanyan
2014-08-02Small fixes for AST conversion.Ingvar Stepanyan
2014-08-01Fixes and improvements for UglifyJS->SM AST conversion.Ingvar Stepanyan
* Explicitly forbidden multiple catch clauses as SM-specific feature. * Simplified describing of UglifyJS->Mozilla AST conversion rules. * Moved alias rules to single place. * Removed usage of dynamic type bindings in generated code (speed-up).
2014-08-01Improved UglifyJS<->SpiderMonkey AST conversions.Ingvar Stepanyan
* Added directives recognition in SM AST. * Moved semi-standard SM `Property` type to separate handler. * Added `const` recognition from SM AST. * Removed redundant `this`-as-identifier recognition. * Removed redundant rules for abstract SM types. * Described `CatchClause` using string syntax. * Added support for semi-standard `range` tuple as location source. * Added back-conversion support (to be improved).
2014-03-06Handle TryStatements trees from acorn >=0.2.0Conrad Irwin
2013-04-29Workaround for missing `prefix` in UnaryExpression generated by EsprimaMihai Bazon
See #193
2012-10-13fix end tokens in spidermonkey ast importMihai Bazon
2012-10-09added $propdoc to AST nodes and some cleanupsMihai Bazon
hopefully we can make the AST documentation self-generating
2012-10-05remove unused codeMihai Bazon
2012-10-05fixed import of locations from SpiderMonkey ASTMihai Bazon
2012-10-04use the appropriate constructor for symbolsMihai Bazon
2012-10-03moving code aroundMihai Bazon
2012-10-03define AST_Node.from_mozilla_ast(ast)Mihai Bazon
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)