warn & drop #__PURE__ iff IIFE is dropped (#1511)

- consolidate `side-effects` optimisations
- improve string `+` optimisation
- enhance literal & `conditionals` optimisations
This commit is contained in:
Alex Lam S.L
2017-02-28 02:25:44 +08:00
committed by GitHub
parent 0b0296eb2a
commit 858e6c78a4
8 changed files with 216 additions and 99 deletions

View File

@@ -35,7 +35,7 @@ string_plus_optimization: {
throw "nope";
}
try {
console.log('0' + throwing_function() ? "yes" : "no");
console.log((throwing_function(), "yes"));
} catch (ex) {
console.log(ex);
}