Implement stack unwinding

This commit is contained in:
Andrew Morris
2023-03-23 09:57:40 +11:00
parent 337c5c5296
commit 0daaf0f650
8 changed files with 49 additions and 1 deletions

View File

@@ -137,4 +137,8 @@ impl StackFrameTrait for ArrayMappingFrame {
fn get_call_result(&mut self) -> CallResult {
panic!("Not appropriate for MapFrame")
}
fn catch_exception(&mut self, _exception: Val) -> bool {
return false;
}
}

View File

@@ -105,4 +105,8 @@ impl StackFrameTrait for ReduceFrame {
fn get_call_result(&mut self) -> CallResult {
panic!("Not appropriate for ReduceFrame")
}
fn catch_exception(&mut self, _exception: Val) -> bool {
return false;
}
}

View File

@@ -119,4 +119,8 @@ impl StackFrameTrait for ReduceRightFrame {
fn get_call_result(&mut self) -> CallResult {
panic!("Not appropriate for ReduceRightFrame")
}
fn catch_exception(&mut self, _exception: Val) -> bool {
return false;
}
}

View File

@@ -304,4 +304,8 @@ impl StackFrameTrait for SortFrame {
fn get_call_result(&mut self) -> CallResult {
panic!("Not appropriate for SortFrame")
}
fn catch_exception(&mut self, _exception: Val) -> bool {
return false;
}
}