Function mozjs_sys::jsapi::JS::IsAsyncStackCaptureEnabledForRealm
source · pub unsafe extern "C" fn IsAsyncStackCaptureEnabledForRealm(
cx: *mut JSContext,
) -> bool
Expand description
Returns true if capturing stack trace data to associate with an asynchronous operation is currently enabled for the current context realm.
Users should check this state before capturing a stack that will be passed back to AutoSetAsyncStackForNewCalls later, in order to avoid capturing a stack for async use when we don’t actually want to capture it.