more test

This commit is contained in:
alexlamsl 2017-04-24 01:52:16 +08:00
parent 8ec2732fc3
commit acfeaf4e70

View File

@ -94,7 +94,7 @@ issue_485_crashing_1530: {
} }
} }
issue_1841: { issue_1841_1: {
options = { options = {
keep_fargs: false, keep_fargs: false,
pure_getters: "strict", pure_getters: "strict",
@ -119,3 +119,29 @@ issue_1841: {
} }
expect_exact: "42" expect_exact: "42"
} }
issue_1841_2: {
options = {
keep_fargs: false,
pure_getters: false,
reduce_vars: true,
unused: true,
}
input: {
var b = 10;
!function(arg) {
for (var key in "hi")
var n = arg.baz, n = [ b = 42 ];
}(--b);
console.log(b);
}
expect: {
var b = 10;
!function(arg) {
for (var key in "hi")
arg.baz, b = 42;
}(--b);
console.log(b);
}
expect_exact: "42"
}