aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
AgeCommit message (Expand)Author
2017-12-16fix nested `inline` (#2602)...fixes #2601Alex Lam S.L
2017-12-15handle `inline` of function arguments (#2590)...fixes #2476Alex Lam S.L
2017-12-14inline single-use `function` across loop (#2594)Alex Lam S.L
2017-12-14fold `cascade` functionality into `collapse_vars` (#2586)Alex Lam S.L
2017-12-07eliminate noop calls more aggressively (#2559)Alex Lam S.L
2017-12-01improve compression of `if` conditions (#2544)Alex Lam S.L
2017-11-29fix `inline` on nested substitutions (#2533)...fixes #2531Alex Lam S.L
2017-11-11implement compress option `reduce_funcs` (#2466)...- inline single-use function declarations as expressions when permissible - depend on `reduce_vars` - enabled by default - disable for speed critical code fixes #2464Alex Lam S.L
2017-11-09fix multiple nested function substitutions (#2458)...fixes #2449Alex Lam S.L
2017-11-05inline single-use functions that are not constant expressions (#2434)...fixes #2428Alex Lam S.L
2017-10-22safer `properties` transform (#2391)...`{ a: x, b: y }.a` => `[ x, y ][0]` - `x` cannot be function containing `this` `[ x, y, z ][1]` => `(x, z, y)` - only if `z` is side-effect-freeAlex Lam S.L
2017-10-22fix `unsafe` escape analysis in `reduce_vars` (#2387)Alex Lam S.L
2017-07-02improve `inline` efficiency (#2188)...... by teaching `collapse_vars` some new tricks. fixes #2187Alex Lam S.L
2017-06-27improve `unsafe_Func` (#2171)...- minimise disturbance to `compute_char_frequency()` - remove extraneous quotation marksAlex Lam S.L
2017-06-23synchronise `mangle.properties` for `minify()` & `test/compress` (#2151)Alex Lam S.L
2017-06-17make defensive copies when `inline` (#2116)...fixes #2114Alex Lam S.L
2017-06-16correctly determine scope of `AST_This` (#2109)...fixes #2107Alex Lam S.L
2017-06-15suppress `inline` of `this` (#2103)...fixes #2101Alex Lam S.L
2017-06-15compute `uses_arguments` correctly in `figure_out_scope()` (#2099)...fixes #2097Alex Lam S.L
2017-06-13fix variable accounting in `inline` (#2085)...fixes #2084Alex Lam S.L
2017-06-06implement function inlining (#2053)...- empty body - single `AST_Return` - single `AST_SimpleStatement` - avoid `/*#__PURE__*/` Miscellaneous - enhance single-use function substitution fixes #281Alex Lam S.L
2017-06-06workaround webkit parsing error (#2056)...apply `webkit` to jetstream testsAlex Lam S.L
2017-05-31introduce `unsafe_Func` (#2033)...Separate flag for #203 functionality.Alex Lam S.L
2017-05-27extend `node_version` range on applicable tests (#2015)Alex Lam S.L
2017-05-27fix `hoist_funs` on block-scoped `function` under "use strict" (#2013)...Technically not part of ES5, but commonly used code exists in the wild.Alex Lam S.L
2017-05-02improve literal return optimization (#1860)kzc
2017-04-24fix `unused` on for-in statements (#1843)...Only need to avoid `var` within the initialisation block. fixes #1841Alex Lam S.L
2017-03-19make `expect_stdout` work on Node.js 0.12 (#1623)...That particular version of Node.js has messed up error messages, so provide a version-specific workaround. Also fixed an formatting issue which would cause `expect_stdout` to fail if error message contains excerpts of input. Apply `expect_stdout` to more applicable tests.Alex Lam S.L
2017-03-05fix a corner case in #1530 (#1552)Alex Lam S.L
2017-03-03process code with implicit return statement (#1522)...Bookmarklet for instance implicitedly assumes a "completion value" without using `return`. The `expression` option now supports such use cases. Optimisations on IIFEs also enhanced. fixes #354 fixes #543 fixes #625 fixes #628 fixes #640 closes #1293Alex Lam S.L
2017-03-02optimize trivial IIFEs returning constants (#1530)kzc
2017-01-19Add preventive test involving non-ascii function identifiersAnthony Van de Gejuchte