aboutsummaryrefslogtreecommitdiff
path: root/lib/mozilla-ast.js
AgeCommit message (Expand)Author
2020-11-08support computed property name in object literal (#4268)Alex Lam S.L
2020-05-10improve AST validation (#3864)Alex Lam S.L
2020-05-09implement AST validation (#3863)Alex Lam S.L
2020-05-05update links to repository after rename (#3847)Alex Lam S.L
2019-10-15fix corner case in `rename` (#3481)...fixes #3480Alex Lam S.L
2018-06-06general clean-ups (#3175)Alex Lam S.L
2018-03-27fix extra regex slash when going through mozilla AST I/O (#3025)...This relates to #1929, but in the context of mozilla AST input/output.Fábio Santos
2018-03-23improve performance (#3020)...- replace `find_if()` with `all()` wherever possible - move ESTree-specific logic out of `figure_out_scope()`Alex Lam S.L
2017-05-15fix & improve coverage of `estree` (#1935)...- 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 #1915Alex Lam S.L
2017-05-12remove support for `const` (#1910)...As this is not part of ES5.Alex Lam S.L
2017-04-12convert `AST_Seq` from binary tree to array (#1460)...- rename `AST_Seq` to `AST_Sequence` - raise default sequences_limit from 200 to 800Alex Lam S.L
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 holes...Fixes: #1156 #1161 Also add test to exercise Uglify after spidermonkey export/import of itself. kzc
2015-11-12Fix output for "use asm" code from SpiderMonkey AST...(will only work properly if the SM tree contains "raw" properties for Literal number nodes) Mihai Bazon
2015-11-02simplify mozilla AST RegExpLiteral token parse and handle corner cases of reg...kzc
2015-11-02Have mozilla AST RegExpLiteral parser use regex.pattern and regex.flags rathe...kzc
2015-11-01rename To_Moz_Literal to To_Moz_RegExpkzc
2015-11-01Fixed RegExp literal in mozilla AST generation/output and added a --dump-spid...kzc
2015-09-24Fix mozilla-ast after module loading changes...Need to explicitly qualify stuff now, since it's not evaluated in some global scope. Ref #636 Mihai Bazon
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....* 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). Ingvar Stepanyan
2014-08-01Improved UglifyJS<->SpiderMonkey AST conversions....* 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). Ingvar Stepanyan
2014-03-06Handle TryStatements trees from acorn >=0.2.0Conrad Irwin
2013-04-29Workaround for missing `prefix` in UnaryExpression generated by Esprima...See #193 Mihai Bazon
2012-10-13fix end tokens in spidermonkey ast importMihai Bazon
2012-10-09added $propdoc to AST nodes and some cleanups...hopefully we can make the AST documentation self-generating Mihai Bazon
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)...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) Mihai Bazon