aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
AgeCommit message (Expand)Author
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