pub unsafe fn new_error(
context: *mut JSContext,
name: &str,
message: &str,
stack: &str,
) -> Result<QuickJsValueAdapter, JsError>
Expand description
Create a new Error object
ยงSafety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid