quickjs_runtime::quickjs_utils::errors

Function is_error

source
pub unsafe fn is_error(
    context: *mut JSContext,
    obj_ref: &QuickJsValueAdapter,
) -> bool
Expand description

See if a JSValueRef is an Error object

ยงSafety

When passing a context pointer please make sure the corresponding QuickJsContext is still valid