Function script::dom::bindings::import::module::jsapi::ExceptionStackOrNull

source ·
pub unsafe extern "C" fn ExceptionStackOrNull(
    obj: Handle<*mut JSObject>,
) -> *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.