enhance unused (#4129)

This commit is contained in:
Alex Lam S.L
2020-09-19 18:45:52 +01:00
committed by GitHub
parent f0ae03ed39
commit 3c609e2f4a
5 changed files with 17 additions and 12 deletions

View File

@@ -120,7 +120,7 @@ modified: {
expect: {
function f0() {
var b = 2;
b++;
+b;
console.log(2);
console.log(4);
}
@@ -5590,7 +5590,7 @@ lvalues_def_1: {
}
expect: {
var b = 1;
var a = b++, b = NaN;
var a = +b, b = NaN;
console.log(a, b);
}
expect_stdout: "1 NaN"