diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-12-15 13:28:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 13:28:30 +0800 |
commit | 8f681b1d1721e931852be48720d26ba052eac96c (patch) | |
tree | fc0f3a94f03fe79107fa3db5f46bef4249ce89c1 /test/compress/hoist_props.js | |
parent | 90313875f75f68fecfc23c6c6f96f921da730301 (diff) | |
download | tracifyjs-8f681b1d1721e931852be48720d26ba052eac96c.tar.gz tracifyjs-8f681b1d1721e931852be48720d26ba052eac96c.zip |
handle `inline` of function arguments (#2590)
fixes #2476
Diffstat (limited to 'test/compress/hoist_props.js')
-rw-r--r-- | test/compress/hoist_props.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/compress/hoist_props.js b/test/compress/hoist_props.js index a46033d5..012a3fca 100644 --- a/test/compress/hoist_props.js +++ b/test/compress/hoist_props.js @@ -55,9 +55,8 @@ issue_2377_2: { console.log(obj.foo, obj.cube(3)); } expect: { - console.log(1, function(x) { - return x * x * x; - }(3)); + console.log(1, (x = 3, x * x * x)); + var x; } expect_stdout: "1 27" } @@ -67,9 +66,10 @@ issue_2377_3: { evaluate: true, inline: true, hoist_props: true, - passes: 3, + passes: 4, reduce_funcs: true, reduce_vars: true, + side_effects: true, toplevel: true, unused: true, } |