consolidate evaluate & reduce_vars (#1505)

- improve marking efficiency
- apply smarter `const` replacement to `var`

fixes #1501
This commit is contained in:
Alex Lam S.L
2017-02-26 00:40:33 +08:00
committed by GitHub
parent 834f9f3924
commit 16cd5d57a5
5 changed files with 57 additions and 50 deletions

View File

@@ -615,7 +615,7 @@ call_args: {
const a = 1;
console.log(1);
+function(a) {
return a;
return 1;
}(1);
}
}