Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-02-21 | Take operator || precendence into account for AST_If optimization. | kzc | |
Fixes #979. | |||
2016-02-17 | preserve ThisBinding for side_effects | alexlamsl | |
2016-02-16 | Don't compress (0, eval)() to eval() | Richard van Velzen | |
2016-02-16 | Preserve ThisBinding in conditionals & collapse_vars | alexlamsl | |
Fixes #973 | |||
2016-02-10 | Revert "using the original sourcemap as the base" | sergeyv | |
This reverts commit ad18689d926d25c7a25b95c630c2ad05b7b5f5b5. Reason for revert: introduce issue #882 Currently, generated sourcemap contains copy of all existing mappings and adds new mappings from uglified code to original one. However, previous mapping are no longer valid and shouldn't be added. | |||
2016-01-29 | collapse_vars: avoid replacement across AST_Case nodes to be on safe side ↵ | kzc | |
even though no issues seen. | |||
2016-01-28 | collapse_vars: fix if/else and ternary operator side effects | kzc | |
2016-01-28 | collapse_vars: fix bug in repeated var defs of same name | kzc | |
2016-01-27 | fix bug in collapse_vars for right side of "||" and "&&" | kzc | |
2016-01-27 | Collapse single use var definitions | kzc | |
Fix #721 | |||
2016-01-27 | Add start/end in the `arguments` definition | Mihai Bazon | |
(keeps my https://github.com/mishoo/jsinfo.el working) | |||
2016-01-20 | Merge pull request #928 from STRML/constPragma | Richard van Velzen | |
Mark vars with /** @const */ pragma as consts so they can be eliminated. | |||
2016-01-20 | Tighten up @const regex. | Samuel Reed | |
2016-01-20 | Simplify by skipping extra tree walk. | Samuel Reed | |
2016-01-20 | Use TreeWalker for more accurate @const results and update tests | Samuel Reed | |
2016-01-19 | Mark vars with /** @const */ pragma as consts so they can be eliminated. | Samuel Reed | |
Fixes older browser support for consts and allows more flexibility in dead code removal. | |||
2016-01-19 | Allow operator names as getters/setters | Anthony Van de Gejuchte | |
Fixes #919 Fix provided by @kzc | |||
2016-01-19 | Add some tests for comment-filters through api | Anthony Van de Gejuchte | |
Also never bother comment options to filter comment5/shebang comments as they have their custom filter. | |||
2016-01-14 | Never mangle arguments and keep them in their scope | Anthony Van de Gejuchte | |
Fixes #892 Helped-by: kzc | |||
2016-01-14 | Merge pull request #905 from avdg/unit-tests | Richard van Velzen | |
Add unit tests | |||
2016-01-05 | Fix hoisting the var in ForIn | Mihai Bazon | |
Close #913 | |||
2015-12-27 | Fix ch that could contain other newline characters | Anthony Van de Gejuchte | |
2015-12-26 | Do not allow newlines in string literals | Anthony Van de Gejuchte | |
2015-12-26 | Merge pull request #874 from kzc/fix-conditionals | Richard van Velzen | |
#873 Fix `conditionals` optimizations with default compress options | |||
2015-12-17 | Semicolon after do...while statement is optional | Anthony Van de Gejuchte | |
2015-11-24 | #873 Fix `conditionals` optimizations with default compress options | kzc | |
2015-11-16 | Fix endless loop | Mihai Bazon | |
Close #866 | |||
2015-11-16 | Limit max iterations for tighten_body | Mihai Bazon | |
Ref #866 | |||
2015-11-12 | Fix output for "use asm" code from SpiderMonkey AST | Mihai Bazon | |
(will only work properly if the SM tree contains "raw" properties for Literal number nodes) | |||
2015-11-12 | Build label def/refs info when figuring out scope | Mihai Bazon | |
Fix #862 | |||
2015-11-11 | Rework has_directive | Mihai Bazon | |
It's now available during tree walking, i.e. walker.has_directive("use asm"), rather than as part of the scope. It's thus no longer necessary to call `figure_out_scope` before codegen. Added special bits in the code generator to overcome the fact that it doesn't inherit from TreeWalker. Fix #861 | |||
2015-11-10 | Merge pull request #854 from kzc/moz-regexp-2 | Mihai Bazon | |
Have mozilla AST RegExpLiteral parser use regex.pattern and regex.flags | |||
2015-11-09 | Fix parsing invalid input | Mihai Bazon | |
i.e. `x = 1.xe` — because parseFloat("1.xe") returns 1, this parsed as `x = 1`. Ref #857 | |||
2015-11-09 | Prevent ReDoS by not using a regexp to verify floating point numbers | Richard van Velzen | |
`parseFloat` will return `NaN` for invalid numbers anyway, which is the check used to throw the parse error. Fixes #857 | |||
2015-11-02 | simplify mozilla AST RegExpLiteral token parse and handle corner cases of ↵ | kzc | |
regex.pattern better | |||
2015-11-02 | Have mozilla AST RegExpLiteral parser use regex.pattern and regex.flags ↵ | kzc | |
rather than non-standard `raw` property. | |||
2015-11-01 | rename To_Moz_Literal to To_Moz_RegExp | kzc | |
2015-11-01 | Fixed RegExp literal in mozilla AST generation/output and added a ↵ | kzc | |
--dump-spidermonkey-ast flag | |||
2015-10-29 | `return undefined` optimization no longer uses `return_void_0` option | kzc | |
2015-10-29 | optimize `return undefined` and `return void 0` | kzc | |
2015-10-28 | Allow specification beautify options in tests | Richard van Velzen | |
Caught an error in #847 as well - `output` wasn't passed anywhere which led to an exception. `options` was available though. | |||
2015-10-27 | fixes #845: \v escaping should be restricted to "screw_ie8" mode | Michael Ficarra | |
2015-10-20 | Fix #836 | Fábio Santos | |
2015-10-15 | Make_string was missing \v and wasnt reversing vertical tabs even though ↵ | startswithaj | |
read_escaped_char coverts them | |||
2015-10-13 | Fix other operator output related to <!-- or --> | kzc | |
2015-10-12 | Only encode <!-- and --> in strings when inline_script | Mihai Bazon | |
2015-10-12 | Output `-- >` instead of `-->` in expressions. Escape `<!--` and `-->` ↵ | kzc | |
within string literals. | |||
2015-10-07 | Fix handling of "use asm" when no command line flags are passed to uglifyjs. ↵ | kzc | |
SCOPE_IS_NEEDED is unconditionally true now. Refactored floating point literal parsing to be more in keeping with the AST class design. | |||
2015-10-07 | Add proper support for "use asm"; blocks. Disable -c optimization within ↵ | kzc | |
"use asm"; sections and preserve floating point literals in their original form. Non-asm.js sections are optimized as before. Asm.js sections can still be mangled and minified of whitespace. No special command line flags are required. | |||
2015-10-06 | Implement shebang support | Anthony Van de Gejuchte | |