drop unused compound assignments (#2230)

fixes #2226
This commit is contained in:
Alex Lam S.L
2017-07-14 00:39:34 +08:00
committed by GitHub
parent 458e3e15f0
commit 5229cb2b1b
3 changed files with 118 additions and 21 deletions

View File

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