diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-06-06 05:49:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-06 05:49:53 +0800 |
commit | 3493a182b2c94e4011b2b12d61376273b985d29a (patch) | |
tree | 449238f5af448b90551f66d92ce87a4a2a317103 /test/compress/collapse_vars.js | |
parent | 27c5284d3dc0ab131168a73035be7d87ebda30e9 (diff) | |
download | tracifyjs-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.js | 2 |
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; })(); } } } |