diff --git a/boa_engine/src/vm/mod.rs b/boa_engine/src/vm/mod.rs index df5e9830f1b..373dc9e6986 100644 --- a/boa_engine/src/vm/mod.rs +++ b/boa_engine/src/vm/mod.rs @@ -224,7 +224,7 @@ impl Context<'_> { const OPERAND_COLUMN_WIDTH: usize = Self::COLUMN_WIDTH; const NUMBER_OF_COLUMNS: usize = 4; - fn trace_call_frame(&self) { + pub(crate) fn trace_call_frame(&self) { let msg = if self.vm.frames.last().is_some() { format!( " Call Frame -- {} ", @@ -454,6 +454,7 @@ impl Context<'_> { let exit_early = frame.exit_early; if self.vm.handle_exception_at(pc) { + self.vm.pending_exception = Some(err); continue 'instruction; }