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

Method has_prop

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

Source from the content-addressed store, hash-verified

145
146 #[pymethod]
147 fn has_prop(&self, name: JsProperty, vm: &VirtualMachine) -> PyResult<bool> {
148 has_prop(&self.value, &name.into_js_value()).map_err(|err| new_js_error(vm, err))
149 }
150
151 #[pymethod]
152 fn get_prop(&self, name: JsProperty, vm: &VirtualMachine) -> PyResult<PyJsValue> {

Callers

nothing calls this directly

Calls 2

new_js_errorFunction · 0.85
into_js_valueMethod · 0.80

Tested by

no test coverage detected