mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
Implement stack unwinding
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user