We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48f3772 commit 582d1e0Copy full SHA for 582d1e0
crates/codegen/src/compile.rs
@@ -4115,10 +4115,14 @@ impl Compiler {
4115
self.compile_addcompare(op);
4116
4117
// if comparison result is false, we break with this value; if true, try the next one.
4118
+ /*
4119
emit!(self, Instruction::CopyItem { index: 1 });
4120
// emit!(self, Instruction::ToBool); // TODO: Uncomment this
4121
emit!(self, Instruction::PopJumpIfFalse { target: cleanup });
4122
emit!(self, Instruction::PopTop);
4123
+ */
4124
+
4125
+ emit!(self, Instruction::JumpIfFalseOrPop { target: cleanup });
4126
}
4127
4128
self.compile_expression(last_comparator)?;
0 commit comments