Skip to content

Commit

Permalink
Propagate exception
Browse files Browse the repository at this point in the history
  • Loading branch information
HalidOdat committed Sep 28, 2023
1 parent 36ea274 commit 65963b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boa_engine/src/vm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 -- {} ",
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 65963b2

Please sign in to comment.