fix delete related issues in collapse_vars and reduce_vars (#1689)

This commit is contained in:
Alex Lam S.L
2017-03-26 19:14:30 +08:00
committed by GitHub
parent 00996afd2c
commit 861a79ac9f
3 changed files with 46 additions and 28 deletions

View File

@@ -894,7 +894,8 @@ collapse_vars_unary: {
}
expect: {
function f0(o, p) {
delete o[p];
var x = o[p];
delete x;
}
function f1(n) {
return n > +!!n