fix a corner case in #1530 (#1552)

This commit is contained in:
Alex Lam S.L
2017-03-05 12:12:59 +08:00
committed by GitHub
parent ea9ab9fb0e
commit 78d1bb92d4
2 changed files with 23 additions and 4 deletions

View File

@@ -74,3 +74,20 @@ iifes_returning_constants_keep_fargs_false: {
console.log((a(), b(), 6));
}
}
issue_485_crashing_1530: {
options = {
conditionals: true,
dead_code: true,
evaluate: true,
}
input: {
(function(a) {
if (true) return;
var b = 42;
})(this);
}
expect: {
this, void 0;
}
}