Skip to content

Commit

Permalink
Fix early return in for in loop head (#2043)
Browse files Browse the repository at this point in the history
This Pull Request changes the following:

- Fix early return in `for in loop` head
  • Loading branch information
raskad committed Apr 23, 2022
1 parent 5b46d12 commit 55c89c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions boa_engine/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)?;
Expand Down

0 comments on commit 55c89c7

Please sign in to comment.