Skip to content

Commit 5a4aaee

Browse files
author
jonas.ong
committed
add pass statement
1 parent d52f956 commit 5a4aaee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/wasm-compiler/builderGenerator.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ ${args.map(
579579
.then(...body);
580580
}
581581

582+
visitPassStmt(stmt: StmtNS.Pass): WasmInstruction {
583+
return wasm.nop();
584+
}
585+
582586
// UNIMPLEMENTED PYTHON CONSTRUCTS
583587
visitMultiLambdaExpr(expr: ExprNS.MultiLambda): WasmNumeric {
584588
throw new Error("Method not implemented.");
@@ -589,9 +593,6 @@ ${args.map(
589593
visitDedentCreation(stmt: StmtNS.Dedent): WasmInstruction {
590594
throw new Error("Method not implemented.");
591595
}
592-
visitPassStmt(stmt: StmtNS.Pass): WasmInstruction {
593-
throw new Error("Method not implemented.");
594-
}
595596
visitAnnAssignStmt(stmt: StmtNS.AnnAssign): WasmInstruction {
596597
throw new Error("Method not implemented.");
597598
}

0 commit comments

Comments
 (0)