Skip to content

Commit

Permalink
Inject realm before crossing the function boundry
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Sep 28, 2023
1 parent 65963b2 commit 82da7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boa_engine/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,9 @@ impl Context<'_> {
return CompletionRecord::Throw(err);
}

// Inject realm before crossing the function boundry
let err = err.inject_realm(self.realm().clone());

self.vm.pop_frame();

while let Some(frame) = self.vm.frames.last_mut() {
Expand Down

0 comments on commit 82da7ad

Please sign in to comment.