fix: for-in not managing stack correctly
This commit is contained in:
parent
fffeac9bac
commit
ee8268b144
@ -62,6 +62,7 @@ public class ForInNode extends Node {
|
||||
end.set(endI + 1);
|
||||
LabelContext.popLoop(target.env, label);
|
||||
|
||||
target.add(Instruction.discard());
|
||||
if (pollute) target.add(Instruction.pushUndefined());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user