aboutsummaryrefslogtreecommitdiff
path: root/test/compress/collapse_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-11-13 04:17:09 +0800
committerGitHub <noreply@github.com>2019-11-13 04:17:09 +0800
commitd6fd18d0b000e1e4fbe01259139043f42d8fdebf (patch)
tree7dca39ef5d97e53a4e5c1d062565df3d9313373f /test/compress/collapse_vars.js
parent0d17c5b0fa3a4305177f9561ba1f05835a9ffea3 (diff)
downloadtracifyjs-d6fd18d0b000e1e4fbe01259139043f42d8fdebf.tar.gz
tracifyjs-d6fd18d0b000e1e4fbe01259139043f42d8fdebf.zip
enhance `evaluate` & `inline` (#3580)
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r--test/compress/collapse_vars.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js
index 86e8d632..e67425af 100644
--- a/test/compress/collapse_vars.js
+++ b/test/compress/collapse_vars.js
@@ -1458,7 +1458,7 @@ collapse_vars_constants: {
function f3(x) {
var b = x.prop;
sideeffect1();
- return b + (function() { return -9; })();
+ return b + -9;
}
}
}
@@ -5748,7 +5748,7 @@ issue_3215_1: {
}());
}
expect: {
- console.log("number");
+ console.log(typeof 42);
}
expect_stdout: "number"
}