Function quickjs_runtime::quickjs_utils::errors::throw
source · pub unsafe fn throw(
context: *mut JSContext,
error: QuickJsValueAdapter,
) -> JSValue
Expand description
Throw an error and get an Exception JSValue to return from native methods
§Safety
When passing a context pointer please make sure the corresponding QuickJsContext is still valid