diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-12-24 01:56:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 09:56:02 +0800 |
commit | 6988cd95584ce8b66716c17afad9d2dcc71717d0 (patch) | |
tree | f120244c759de2ecc2b53329602a2fd3569d4633 /test/compress/functions.js | |
parent | 2390fae5c4b008aa1028ffdddaa071e4084ef8ac (diff) | |
download | tracifyjs-6988cd95584ce8b66716c17afad9d2dcc71717d0.tar.gz tracifyjs-6988cd95584ce8b66716c17afad9d2dcc71717d0.zip |
replace `keep_fargs` default to `false` (#4443)
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r-- | test/compress/functions.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index 1e7d3e2f..837d0a04 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -229,7 +229,7 @@ issue_203: { } expect: { var m = {}; - var fn = Function("n,o", "o.exports=42"); + var fn = Function("n,o,t", "o.exports=42"); fn(null, m, m.exports); console.log(m.exports); } @@ -4230,7 +4230,7 @@ substitute: { substitute_add_farg: { options = { inline: true, - keep_fargs: "strict", + keep_fargs: false, } input: { function f(g) { @@ -4411,7 +4411,9 @@ substitute_drop_farg: { return f; }, function() { - return f; + return function(d, e) { + return f(d, e); + }; }, ].forEach(function(g) { console.log(g()(o), g().call(o, o)); @@ -4594,7 +4596,7 @@ substitute_use_strict: { issue_3833: { options = { inline: true, - keep_fargs: "strict", + keep_fargs: false, reduce_vars: true, toplevel: true, unused: true, @@ -4751,7 +4753,7 @@ issue_4006: { dead_code: true, evaluate: true, inline: true, - keep_fargs: "strict", + keep_fargs: false, reduce_vars: true, sequences: true, side_effects: true, |