Fix compilation of nested boolean operations

This commit is contained in:
coolreader18 2019-08-09 21:36:42 -05:00
parent dd53fe8f89
commit 5c1bc6756c

View file

@ -1303,11 +1303,9 @@ impl<O: OutputStream> Compiler<O> {
self.emit(Instruction::Pop);
}
if let Some(false_label) = false_label {
self.emit(Instruction::Duplicate);
self.emit(Instruction::JumpIfFalse {
target: false_label,
});
self.emit(Instruction::Pop);
}
}
}