aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.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/evaluate.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/evaluate.js')
-rw-r--r--test/compress/evaluate.js2
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,