improve unused (#1832)

- extract leading value with side-effects out of `var` statement
- reduce scanning of `AST_Definitions` from 3 passes to just once
This commit is contained in:
Alex Lam S.L
2017-04-20 13:06:14 +08:00
committed by GitHub
parent 88e7a542cd
commit f05d4f7af3
4 changed files with 82 additions and 105 deletions

View File

@@ -935,7 +935,8 @@ issue_1715_3: {
try {
console;
} catch (a) {
var a = x();
var a;
x();
}
}
f();