fix is_number() on += (#1714)

fixes #1710
This commit is contained in:
Alex Lam S.L
2017-03-28 17:08:16 +08:00
committed by GitHub
parent fb177a6312
commit f71f4905b0
2 changed files with 17 additions and 2 deletions

View File

@@ -153,3 +153,18 @@ evaluate_4: {
);
}
}
issue_1710: {
options = {
evaluate: true,
}
input: {
var x = {};
console.log((x += 1) + -x);
}
expect: {
var x = {};
console.log((x += 1) + -x);
}
expect_stdout: true
}