(&self, attr: PyStrRef, value: PyStrRef, vm: &VirtualMachine)
| 211 | |
| 212 | #[pymethod] |
| 213 | fn set_attr(&self, attr: PyStrRef, value: PyStrRef, vm: &VirtualMachine) -> PyResult<()> { |
| 214 | self.elem |
| 215 | .set_attribute(attr.expect_str(), value.expect_str()) |
| 216 | .map_err(|err| convert::js_py_typeerror(vm, err)) |
| 217 | } |
| 218 | } |
| 219 | |
| 220 | #[pyfunction] |
no test coverage detected