Function
fire_py_unwind
(
vm: &VirtualMachine,
code: &PyRef<PyCode>,
offset: u32,
exception: &PyObjectRef,
)
Source from the content-addressed store, hash-verified
| 982 | } |
| 983 | |
| 984 | pub fn fire_py_unwind( |
| 985 | vm: &VirtualMachine, |
| 986 | code: &PyRef<PyCode>, |
| 987 | offset: u32, |
| 988 | exception: &PyObjectRef, |
| 989 | ) -> PyResult<()> { |
| 990 | RERAISE_PENDING.with(|f| f.set(false)); |
| 991 | fire( |
| 992 | vm, |
| 993 | EVENT_PY_UNWIND, |
| 994 | code, |
| 995 | offset, |
| 996 | &[vm.ctx.new_int(offset).into(), exception.clone()], |
| 997 | ) |
| 998 | } |
| 999 | |
| 1000 | pub fn fire_py_throw( |
| 1001 | vm: &VirtualMachine, |
Tested by
no test coverage detected