pub unsafe extern "C" fn MaybeGetPromiseAllocationSiteFromPossiblyWrappedPromise(
maybePromise: Handle<*mut JSObject>,
) -> *mut JSObjectExpand description
A more flexible version of the above: Handles the cases where
- maybePromise is wrapped
- maybePromise is null
- maybePromise isn’t actually a promise.
Returns js::SavedFrame if the passed argument is a wrapped promise (that’s not a dead object wrapper) and it has an allocation site.