Function quickjs_runtime::quickjs_utils::errors::get_exception
source · pub unsafe fn get_exception(context: *mut JSContext) -> Option<JsError>
Expand description
Get the last exception from the runtime, and if present, convert it to an JsError.
§Safety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid