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 f51b686d7f
commit fb5ebea389

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);
}
}
}