(
&self,
name: JsProperty,
args: PosArgs<PyJsValueRef>,
vm: &VirtualMachine,
)
| 192 | |
| 193 | #[pymethod] |
| 194 | fn call_method( |
| 195 | &self, |
| 196 | name: JsProperty, |
| 197 | args: PosArgs<PyJsValueRef>, |
| 198 | vm: &VirtualMachine, |
| 199 | ) -> PyResult<PyJsValue> { |
| 200 | let js_args = args.iter().map(|x| -> &PyJsValue { x }).collect::<Array>(); |
| 201 | call_method(&self.value, &name.into_js_value(), &js_args) |
| 202 | .map(PyJsValue::new) |
| 203 | .map_err(|err| new_js_error(vm, err)) |
| 204 | } |
| 205 | |
| 206 | #[pymethod] |
| 207 | fn construct( |
nothing calls this directly
no test coverage detected