MCPcopy Index your code
hub / github.com/RustPython/RustPython / set_prop

Method set_prop

crates/wasm/src/js_module.rs:164–172  ·  view source on GitHub ↗
(
            &self,
            name: JsProperty,
            value: PyJsValueRef,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

162
163 #[pymethod]
164 fn set_prop(
165 &self,
166 name: JsProperty,
167 value: PyJsValueRef,
168 vm: &VirtualMachine,
169 ) -> PyResult<()> {
170 set_prop(&self.value, &name.into_js_value(), &value.value)
171 .map_err(|err| new_js_error(vm, err))
172 }
173
174 #[pymethod]
175 fn call(

Callers

nothing calls this directly

Calls 2

new_js_errorFunction · 0.85
into_js_valueMethod · 0.80

Tested by

no test coverage detected