(&self, n: PyRef<PyFloat>)
| 114 | |
| 115 | #[pymethod] |
| 116 | fn new_from_float(&self, n: PyRef<PyFloat>) -> PyJsValue { |
| 117 | PyJsValue::new(n.to_f64()) |
| 118 | } |
| 119 | |
| 120 | #[pymethod] |
| 121 | fn new_closure(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<JsClosure> { |