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

Function getCancelPropertyKey

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

Source from the content-addressed store, hash-verified

17STRING_CONST(thenPropertyKey, "then")
18
19static JSPropertyName getCancelPropertyKey(IJavaScriptContext& jsContext) {
20 static auto kCancel = STRING_LITERAL("cancel");
21 return jsContext.getPropertyNameCached(kCancel);
22}
23
24JSPromiseCancel::JSPromiseCancel(const Ref<Promise>& promise) : _promise(weakRef(promise.get())) {}
25JSPromiseCancel::~JSPromiseCancel() = default;

Callers 3

attachToJSPromiseMethod · 0.85
getFromJSPromiseMethod · 0.85
isJSPromiseCancelableMethod · 0.85

Calls 1

getPropertyNameCachedMethod · 0.80

Tested by

no test coverage detected