Revert "Fix compilation of nested boolean operations"

This commit is contained in:
Noah 2019-08-11 12:29:10 -05:00 committed by GitHub
parent 5c1bc6756c
commit fde382409c

View file

@ -1303,9 +1303,11 @@ 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);
}
}
}