mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-18 18:16:31 +00:00
add maybe not source maps on block entry
This commit is contained in:
parent
c86cf105b9
commit
fccced6174
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user