aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2020-05-10 20:08:05 +0100
committerGitHub <noreply@github.com>2020-05-11 03:08:05 +0800
commite23bf480522e64db43f8764fef64312750c58e77 (patch)
treeb8c604af2dbeb4b06ec00f93cf10d0c801e93e42 /test/compress/functions.js
parent7e0ad232b079202024ea845a2076ee78e1e0dbd7 (diff)
downloadtracifyjs-e23bf480522e64db43f8764fef64312750c58e77.tar.gz
tracifyjs-e23bf480522e64db43f8764fef64312750c58e77.zip
enhance `evaluate` & `reduce_vars` (#3873)
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js7
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;