process code with implicit return statement (#1522)
authorAlex Lam S.L <alexlamsl@gmail.com>
Fri, 3 Mar 2017 10:13:07 +0000 (18:13 +0800)
committerGitHub <noreply@github.com>
Fri, 3 Mar 2017 10:13:07 +0000 (18:13 +0800)
commit07accd2fbb78ddbdb427774b3b5287a16fa95b5f
treeb1c07129a02b3e595af25e5e9daf8a3024d44fa3
parent18059cc94fdc037e296a1cb1b08143d5e3aae570
process 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 #1293
README.md
lib/compress.js
test/compress/drop-unused.js
test/compress/evaluate.js
test/compress/functions.js
test/compress/issue-640.js [new file with mode: 0644]
test/compress/negate-iife.js
test/compress/sequences.js