Function quickjs_runtime::quickjs_utils::errors::error_to_js_error
source · [−]pub unsafe fn error_to_js_error(
context: *mut JSContext,
exception_ref: &JSValueRef
) -> JsError
Expand description
convert an instance of Error to JsError
Safety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid