pub unsafe fn call_method(
cx: *mut JSContext,
obj: *mut JSObject,
name: &str,
args: &[Value],
) -> Result<JsValue, JsError>Expand description
Safely call a method on a JS object by name.
§Safety
cx must be a valid JSContext. obj must be a valid JSObject pointer.