From 495b54549e63a2ae6d29958c8a49091093f61c57 Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Sat, 23 Apr 2022 22:25:16 +0200 Subject: [PATCH] Fix early return in 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)?;