fix: for-in not managing stack correctly

This commit is contained in:
TopchetoEU 2025-01-24 05:47:44 +02:00
parent fffeac9bac
commit ee8268b144
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -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());
}