make collapse_vars consistent with toplevel (#1608)

fixes #1605
This commit is contained in:
Alex Lam S.L
2017-03-16 13:22:26 +08:00
committed by GitHub
parent a80b228d8b
commit 5ae04b3545
5 changed files with 52 additions and 3 deletions

View File

@@ -50,6 +50,7 @@ this_binding_conditionals: {
this_binding_collapse_vars: {
options = {
collapse_vars: true,
toplevel: true,
};
input: {
var c = a; c();