From 6a9f4a57eb39feecc5924fd9adb34667f9737910 Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:53:03 +0000 Subject: [PATCH] Fix early return in `for in loop` head (#2043) This Pull Request changes the following: - Fix early return in `for in loop` head --- boa_engine/src/vm/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/boa_engine/src/vm/mod.rs b/boa_engine/src/vm/mod.rs index d01399221dc..55468089607 100644 --- a/boa_engine/src/vm/mod.rs +++ b/boa_engine/src/vm/mod.rs @@ -1401,6 +1401,7 @@ impl Context { let object = self.vm.pop(); if object.is_null_or_undefined() { self.vm.frame_mut().pc = address as usize; + return Ok(ShouldExit::False); } let object = object.to_object(self)?;