Function quickjs_runtime::quickjs_utils::errors::new_error
source · 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