pub unsafe fn new_error(
    context: *mut JSContext,
    name: &str,
    message: &str,
    stack: &str
) -> Result<JSValueRef, JsError>
Expand description

Create a new Error object

Safety

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