diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-05-10 20:08:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 03:08:05 +0800 |
commit | e23bf480522e64db43f8764fef64312750c58e77 (patch) | |
tree | b8c604af2dbeb4b06ec00f93cf10d0c801e93e42 /test/compress/functions.js | |
parent | 7e0ad232b079202024ea845a2076ee78e1e0dbd7 (diff) | |
download | tracifyjs-e23bf480522e64db43f8764fef64312750c58e77.tar.gz tracifyjs-e23bf480522e64db43f8764fef64312750c58e77.zip |
enhance `evaluate` & `reduce_vars` (#3873)
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r-- | test/compress/functions.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index ae113c84..db5466ea 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -3514,10 +3514,9 @@ hoisted_single_use: { } expect: { function f(a) { - for (var r in a) g(r); - } - function g(a) { - console.log(a); + for (var r in a) (function(a) { + console.log(a); + })(r); } (function(a) { var g = a.bar; |