quickjs_runtime::quickjs_utils::errors

Function error_to_js_error

source
pub unsafe fn error_to_js_error(
    context: *mut JSContext,
    exception_ref: &QuickJsValueAdapter,
) -> 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