fix: continue statement compiled incorrectly

This commit is contained in:
TopchetoEU 2024-04-07 12:50:58 +03:00
parent 90d019f92a
commit 7f275095a2
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -10,7 +10,7 @@ public class ContinueStatement extends Statement {
@Override
public void compile(CompileResult target, boolean pollute) {
target.add(Instruction.nop(loc(), "cont", label));
target.add(Instruction.nop("cont", label));
if (pollute) target.add(Instruction.pushUndefined());
}