From fb5ebea3897071865a6669bda37f54741efd9a8d Mon Sep 17 00:00:00 2001 From: Noah <33094578+coolreader18@users.noreply.github.com> Date: Sun, 11 Aug 2019 12:29:10 -0500 Subject: [PATCH] Revert "Fix compilation of nested boolean operations" --- compiler/src/compile.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/src/compile.rs b/compiler/src/compile.rs index aafab376e6..a13d3617e8 100644 --- a/compiler/src/compile.rs +++ b/compiler/src/compile.rs @@ -1303,9 +1303,11 @@ impl Compiler { 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); } } }