MCPcopy Create free account
hub / github.com/Snapchat/Valdi / isJSPromiseCancelable

Method isJSPromiseCancelable

valdi/src/valdi/runtime/JavaScript/JSPromise.cpp:58–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58bool JSPromiseCancel::isJSPromiseCancelable(IJavaScriptContext& jsContext, const JSValue& jsPromise) {
59 return jsContext.hasObjectProperty(jsPromise, getCancelPropertyKey(jsContext));
60}
61
62JSPromiseOnFulfilled::JSPromiseOnFulfilled(const Ref<PromiseCallback>& callback,
63 const Ref<ValueMarshaller<JSValueRef>>& valueMarshaller)

Callers

nothing calls this directly

Calls 2

getCancelPropertyKeyFunction · 0.85
hasObjectPropertyMethod · 0.45

Tested by

no test coverage detected