Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
fix: continue statement compiled incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
TopchetoEU committed Apr 7, 2024
1 parent 90d019f commit 7f27509
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 7f27509

Please sign in to comment.