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/evaluate.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/evaluate.js')
-rw-r--r-- | test/compress/evaluate.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js index 99245d0d..27d08d47 100644 --- a/test/compress/evaluate.js +++ b/test/compress/evaluate.js @@ -644,6 +644,7 @@ unsafe_prototype_function: { call_args: { options = { evaluate: true, + inline: true, reduce_vars: true, toplevel: true, } @@ -665,6 +666,7 @@ call_args: { call_args_drop_param: { options = { evaluate: true, + inline: true, keep_fargs: false, reduce_vars: true, toplevel: true, |