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

Function new_js_error

crates/wasm/src/js_module.rs:603–608  ·  view source on GitHub ↗
(vm: &VirtualMachine, err: JsValue)

Source from the content-addressed store, hash-verified

601 }
602
603 fn new_js_error(vm: &VirtualMachine, err: JsValue) -> PyBaseExceptionRef {
604 vm.new_exception(
605 vm.class("_js", "JSError"),
606 vec![PyJsValue::new(err).to_pyobject(vm)],
607 )
608 }
609
610 #[pyattr(name = "JSError", once)]
611 fn js_error(vm: &VirtualMachine) -> PyTypeRef {

Callers 8

has_propMethod · 0.85
get_propMethod · 0.85
set_propMethod · 0.85
callMethod · 0.85
call_methodMethod · 0.85
constructMethod · 0.85
instanceofMethod · 0.85
thenMethod · 0.85

Calls 2

new_exceptionMethod · 0.80
classMethod · 0.45

Tested by

no test coverage detected