deduplicate declarations regardless of toplevel (#2393)

This commit is contained in:
Alex Lam S.L
2017-10-23 01:00:50 +08:00
committed by GitHub
parent 24aa07855b
commit 8a713e449f
2 changed files with 5 additions and 5 deletions

View File

@@ -2051,7 +2051,7 @@ inner_lvalues: {
console.log(null, a, b);
}
expect: {
var a, b = 10;
var b = 10;
var a = (--b || a || 3).toString(), c = --b + -a;
console.log(null, a, b);
}