fix: for-in loop doesn't declare its binding when it has to
This commit is contained in:
parent
12cff84666
commit
f8b9776f28
@ -21,7 +21,9 @@ public class ForInNode extends Node {
|
||||
|
||||
@Override public void resolve(CompileResult target) {
|
||||
body.resolve(target);
|
||||
binding.resolve(target);
|
||||
if (isDecl) {
|
||||
target.scope.define(binding.name);
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void compileFunctions(CompileResult target) {
|
||||
|
Loading…
Reference in New Issue
Block a user