Age | Commit message (Expand) | Author |
2015-04-13 | Fix compression of conditionals...Don't move the condition on the right side of an assignment when
the left side may have side effects.
Fix #677
| Mihai Bazon |
2015-03-23 | Fix compressing `![foo()];` as a statement...need to check whether the literal has any side effects before replacing that
with `false`.
| Mihai Bazon |
2015-03-22 | [sequencesize] Actually even better:...do create the sequence even if the stat list is bigger than 2000 statements,
but limit the sequence itself to 2000 expressions.
Ref #414
| Mihai Bazon |
2015-03-22 | Avoid sequencesize for more than 2000 statements....It hardly saves any bytes for a sequence so long, and it risks blowing the
stack with the recursive Seq functions.
Ref #414
| Mihai Bazon |
2015-03-22 | Add start/end nodes for NaN/Infinity transformations | Mihai Bazon |
2015-03-20 | Keep unused function arguments by default...Discarding unused function arguments affects function.length, which can lead
to some hard to debug issues. This optimization is now done only in "unsafe
mode".
Fix #121
| Mihai Bazon |
2015-02-11 | Fix invalid removal of left side in && and || compression...See #637. This does not produce the optimal result, but it does prevent the removal of non-side-effect-free code.
| Richard van Velzen |
2015-01-31 | Drop all `console` statements properly...Because the base reference can be an member expression as well, we have to dig a bit deeper to find the leftmost base reference.
Fixes #451
| Richard van Velzen |
2015-01-13 | Optimize conditionals where the consequent and alternative are both booleans ... | Tal Ater |
2015-01-12 | Replace the correct node when replacing in `void` sequences...Close #611.
| Richard van Velzen |
2015-01-11 | Merge pull request #482 from arty-name/inline-ng-inject...added @ngInject support for inline functions | Mihai Bazon |
2015-01-07 | Fix make_node_from_constant for Regexp-s...Close #588
| Mihai Bazon |
2015-01-06 | aborts(AST_If) returns the `if` node...Previously it returned the abort node from the alternative branch. This is
not much use as it can be different from the one in the body
branch (i.e. return vs. throw) and can trick us into issues like #591.
Fix #591
| Mihai Bazon |
2015-01-05 | Support keep_fnames in compressor, and --keep-fnames. #552...Passing `--keep-fnames` will enable it both for compressor/mangler, so that
function names will not be dropped (when unused) nor mangled.
| Mihai Bazon |
2015-01-04 | Fix #569...When no arguments are given to `new Function()`, it should be treated as
a regular anonymous function (http://es5.github.io/#x15.3.2.1)
| Richard van Velzen |
2014-12-31 | Fix #597...NaN and Infinity were replaced in the output generation, instead of
during compression. This could lead to results where `1/0` was inserted
without parens leading to invalid output.
The nodes are replaced in the compression step now, and the output
generation returns their regular names. This should not be a problem,
since they're already only constructed from the original name.
| Richard van Velzen |
2014-09-28 | Referencing a global is assumed to have side effects....Close #550
| Mihai Bazon |
2014-09-04 | Compress conditions that have side effects using sequences | Tal Ater |
2014-09-02 | Compress conditional assignments where all possible outcomes are equivalant a... | Tal Ater |
2014-08-26 | Turn foo.new into foo["new"] when not --screw-ie8. Fix #534 | Mihai Bazon |
2014-08-20 | Prevent error for Function(""). Close #538 | Mihai Bazon |
2014-07-01 | Evaluate "foo".length ==> 3 | Dan Wolff |
2014-05-11 | added @ngInject support for inline functions | Artemy Tregubenko |
2014-02-08 | Add option `keep_fargs`....By default it's `false`. Pass `true` if you need to keep unused function
arguments.
Close #188.
| Mihai Bazon |
2014-02-06 | Simplify nested conditionals if possible | Matt Basta |
2014-01-31 | Fix if_return dropping the alternative. Close #413 | Mihai Bazon |
2014-01-08 | Better process_for_angular before other statement reductions. #395 | Mihai Bazon |
2014-01-08 | Support @ngInject with `angular` compressor option. Close #395. | Mihai Bazon |
2014-01-07 | doh. | Mihai Bazon |
2014-01-07 | minor: exp["10"] => exp[10] | Mihai Bazon |
2013-12-29 | Conditional/call optimization... foo ? bar(x) : bar(y) ==> bar(foo ? x : y)
| Mihai Bazon |
2013-12-22 | Optimize seq,void 0. Close #377.... (x, void 0) => void x
(x, undefined) => void x
| Mihai Bazon |
2013-12-10 | Add `drop_console` option to the compressor | Mihai Bazon |
2013-12-10 | minor | Mihai Bazon |
2013-11-28 | Properly scope `catch` identifier when --screw-ie8...Fix #344
| Mihai Bazon |
2013-11-20 | Fix faulty compression...`String(x + 5)` is not always the same as `x + "5"`. Overlooked that. :-(
Close #350
| Mihai Bazon |
2013-11-08 | Only descend twice after drop_unused if it's the same node type....Fix #345
| Mihai Bazon |
2013-11-06 | Better fix for #343...We can in fact lift sequences, but only if the operation is assignment and
the left-hand side has no side effects nor property access -- that should
guarantee that whatever we place before it cannot affect the sense of the
assignment.
Dropped contrived test case (too hard to support it now), added a more
meaningful one.
| Mihai Bazon |
2013-11-06 | Do not lift sequence from right-hand side of binary operation. Fix #343 | Mihai Bazon |
2013-10-30 | Fix regression after e4c530240650535d1cb46569dfb013193471af05...`x * (y * z)` ==> `x * y * z` -- the better place to do this is in the
compressor rather than codegen.
| Mihai Bazon |
2013-10-30 | indentation | Mihai Bazon |
2013-10-29 | Disallow reversal where lhs has higher or equal precedence...Fixes #267
| Richard van Velzen |
2013-10-26 | Fix RHS concat (raised in #330)...When attempting to concat the left-side of the rhs, make sure the rhs is
a string.
| Richard van Velzen |
2013-10-24 | Fix #269...Shorten most primitives where possible. Also optimize some edge cases.
| Richard van Velzen |
2013-10-23 | Fix #280...The `init` of the `ForStatement` is not a `BlockStatement` before it was
descended. The descend has to happen first, and *then* the actual
checks.
| Richard van Velzen |
2013-10-22 | Revert #3a81f60 for now...(with it some tests break and it can generate invalid output, see issue #44)
| Mihai Bazon |
2013-10-09 | wrap up | Mihai Bazon |
2013-10-09 | Don't drop_unused before compression....Fix #280, #282
| Mihai Bazon |
2013-10-04 | Rename clean_getters to pure_getters; add pure_funcs. | Mihai Bazon |
2013-10-02 | add `clean_getters` compressor option (default `false`)...allows one to specify if `foo.bar` is considered to have side effects.
| Mihai Bazon |