aboutsummaryrefslogtreecommitdiff
path: root/test/compress/collapse_vars.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-06-06 05:49:53 +0800
committerGitHub <noreply@github.com>2017-06-06 05:49:53 +0800
commit3493a182b2c94e4011b2b12d61376273b985d29a (patch)
tree449238f5af448b90551f66d92ce87a4a2a317103 /test/compress/collapse_vars.js
parent27c5284d3dc0ab131168a73035be7d87ebda30e9 (diff)
downloadtracifyjs-3493a182b2c94e4011b2b12d61376273b985d29a.tar.gz
tracifyjs-3493a182b2c94e4011b2b12d61376273b985d29a.zip
implement function inlining (#2053)
- empty body - single `AST_Return` - single `AST_SimpleStatement` - avoid `/*#__PURE__*/` Miscellaneous - enhance single-use function substitution fixes #281
Diffstat (limited to 'test/compress/collapse_vars.js')
-rw-r--r--test/compress/collapse_vars.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compress/collapse_vars.js b/test/compress/collapse_vars.js
index 90d7ac93..158d1b4a 100644
--- a/test/compress/collapse_vars.js
+++ b/test/compress/collapse_vars.js
@@ -1146,7 +1146,7 @@ collapse_vars_constants: {
function f3(x) {
var b = x.prop;
sideeffect1();
- return b + -9;
+ return b + (function() { return -9; })();
}
}
}