diff --git a/compiler/lowerer.ts b/compiler/lowerer.ts index 685558b..f2b8f7c 100644 --- a/compiler/lowerer.ts +++ b/compiler/lowerer.ts @@ -419,11 +419,9 @@ export class Lowerer { this.program.add(Ops.PushPtr, contineLabel); this.program.add(Ops.Jump); this.program.setLabel(breakLabel); - this.addSourceMap({ index: 0, line: 1, col: 1 }); if (expr.vtype!.type === "null") { this.program.add(Ops.PushNull); } - this.breakStack.pop(); } @@ -438,7 +436,6 @@ export class Lowerer { this.lowerStmt(stmt); } if (expr.kind.expr) { - this.addSourceMap(expr.kind.expr.pos); this.lowerExpr(expr.kind.expr); } else { this.program.add(Ops.PushNull);