mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-14 07:57:57 -05:00
Throw instruction
This commit is contained in:
@@ -392,9 +392,18 @@ impl StackFrameTrait for BytecodeStackFrame {
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Throw => {
|
||||
let error = self.decoder.decode_val(&self.registers);
|
||||
return Err(error);
|
||||
}
|
||||
|
||||
Import | ImportStar => {
|
||||
panic!("TODO: Dynamic imports")
|
||||
}
|
||||
};
|
||||
|
||||
return Ok(FrameStepOk::Continue);
|
||||
Ok(FrameStepOk::Continue)
|
||||
}
|
||||
|
||||
fn apply_call_result(&mut self, call_result: CallResult) {
|
||||
|
||||
Reference in New Issue
Block a user