Merge branch 'master' into harmony-v3.0.21

This commit is contained in:
alexlamsl
2017-06-29 00:58:28 +08:00
6 changed files with 45 additions and 27 deletions

View File

@@ -174,3 +174,24 @@ issue_1986: {
console.log(42);
}
}
issue_2167: {
options = {
conditionals: true,
dead_code: true,
evaluate: true,
global_defs: {
"@isDevMode": "function(){}",
},
side_effects: true,
}
input: {
if (isDevMode()) {
greetOverlord();
}
doWork();
}
expect: {
doWork();
}
}