aboutsummaryrefslogtreecommitdiff
path: root/test/compress/hoist_props.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/hoist_props.js')
-rw-r--r--test/compress/hoist_props.js8
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,
}