feat(diagnostics): preserve Registry and resource fault context for PLN-0176 step 28
This commit is contained in:
@@ -1264,6 +1264,9 @@ impl VirtualMachine {
|
||||
self.operand_stack.truncate(stack_height_before);
|
||||
}
|
||||
native_result.map_err(|fault| match fault {
|
||||
VmFault::ResourceLimit(resource) => {
|
||||
self.resource_trap(resource, opcode, pc_at_syscall)
|
||||
}
|
||||
VmFault::Trap(code, msg) => {
|
||||
self.trap(code, OpCode::Syscall as u16, msg, pc_at_syscall)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user