Function mozjs_sys::jsapi::JS::ExceptionStackOrNull
source · pub unsafe extern "C" fn ExceptionStackOrNull(
obj: HandleObject,
) -> *mut JSObject
Expand description
If the given object is an exception object (or an unwrappable cross-compartment wrapper for one), return the stack for that exception, if any. Will return null if the given object is not an exception object (including if it’s null or a security wrapper that can’t be unwrapped) or if the exception has no stack.