(self, vm: &VirtualMachine)
| 438 | |
| 439 | impl ExceptionCtor { |
| 440 | pub fn instantiate(self, vm: &VirtualMachine) -> PyResult<PyBaseExceptionRef> { |
| 441 | match self { |
| 442 | Self::Class(cls) => vm.invoke_exception(cls, vec![]), |
| 443 | Self::Instance(exc) => Ok(exc), |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | pub fn instantiate_value( |
| 448 | self, |
no test coverage detected