Module quickjs_runtime::quickjs_utils::errors

source ·
Expand description

utils for getting and reporting exceptions

Functions§

  • convert an instance of Error to JsError
  • Get the last exception from the runtime, and if present, convert it to an JsError.
  • See if a JSValueRef is an Error object
  • See if a JSValueRef is an Error object
  • Create a new Error object
  • Throw an error and get an Exception JSValue to return from native methods