implement Assert

This commit is contained in:
2026-05-03 22:20:00 +08:00
parent 8192e60063
commit 2656b0bc11
4 changed files with 22 additions and 8 deletions
+1 -1
View File
@@ -645,10 +645,10 @@ impl<'a, Ctx: BytecodeContext> BytecodeEmitter<'a, Ctx> {
let raw_idx = self.ctx.intern_string(assertion_raw);
let span_id = self.ctx.register_span(*span);
self.emit_expr(*assertion);
self.emit_expr(*expr);
self.emit_op(Op::Assert);
self.emit_str_id(raw_idx);
self.emit_u32(span_id);
self.emit_expr(*expr);
}
&Ir::ReplBinding(name) => {
self.emit_op(Op::LoadReplBinding);