diff options
Diffstat (limited to 'tvix/eval/src/compiler.rs')
-rw-r--r-- | tvix/eval/src/compiler.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tvix/eval/src/compiler.rs b/tvix/eval/src/compiler.rs index 90a6155b6b62..1bfd765a07cd 100644 --- a/tvix/eval/src/compiler.rs +++ b/tvix/eval/src/compiler.rs @@ -350,6 +350,7 @@ impl Compiler { self.compile(node.rhs().unwrap())?; self.patch_jump(end_idx); + self.chunk.add_op(OpCode::OpAssertBool); Ok(()) } @@ -370,6 +371,7 @@ impl Compiler { self.chunk.add_op(OpCode::OpPop); self.compile(node.rhs().unwrap())?; self.patch_jump(end_idx); + self.chunk.add_op(OpCode::OpAssertBool); Ok(()) } @@ -390,6 +392,7 @@ impl Compiler { self.chunk.add_op(OpCode::OpPop); self.compile(node.rhs().unwrap())?; self.patch_jump(end_idx); + self.chunk.add_op(OpCode::OpAssertBool); Ok(()) } |