diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-07-02 01:05:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-02 01:05:14 +0800 |
commit | d40950b741d67bafc91a102ce2c6e862af46fd11 (patch) | |
tree | 491155594137356177a2acedb3fd0287fcf193b3 /test/compress/functions.js | |
parent | 7659ea1d2edd7603bd355eb849bd5dd62c3350c7 (diff) | |
download | tracifyjs-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.js | 6 |
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" |