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