aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-07-02 01:05:14 +0800
committerGitHub <noreply@github.com>2017-07-02 01:05:14 +0800
commitd40950b741d67bafc91a102ce2c6e862af46fd11 (patch)
tree491155594137356177a2acedb3fd0287fcf193b3 /test/compress/functions.js
parent7659ea1d2edd7603bd355eb849bd5dd62c3350c7 (diff)
downloadtracifyjs-d40950b741d67bafc91a102ce2c6e862af46fd11.tar.gz
tracifyjs-d40950b741d67bafc91a102ce2c6e862af46fd11.zip
improve `inline` efficiency (#2188)
... by teaching `collapse_vars` some new tricks. fixes #2187
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index c8efc12c..f411afa2 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -468,11 +468,9 @@ issue_2114_1: {
}
expect: {
var c = 0;
- !function() {
- 0;
- }((c += 1, c = 1 + c, function() {
+ c = 1 + (c += 1), function() {
var b = void (b && (b.b += (c += 1, 0)));
- }()));
+ }();
console.log(c);
}
expect_stdout: "2"