Home
last modified time | relevance | path

Searched refs:onRejected (Results 1 - 5 of 5) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_promise.cpp319 // 25.4.5.1 Promise.prototype.catch ( onRejected )
323 // 2. Return Invoke(promise, "then", «undefined, onRejected»). in Catch()
334 EcmaInterpreter::NewRuntimeCallInfo(thread, undefined, promise, undefined, 2); // 2: «undefined, onRejected» in Catch()
340 // 25.4.5.3 Promise.prototype.then ( onFulfilled , onRejected )
369 JSHandle<JSTaggedValue> onRejected = BuiltinsBase::GetCallArg(argv, 1); in Then() local
371 // 7. Return PerformPromiseThen(promise, onFulfilled, onRejected, resultCapability). in Then()
372 return PerformPromiseThen(thread, JSHandle<JSPromise>::Cast(promise), onFulfilled, onRejected, resultCapability); in Then()
377 const JSHandle<JSTaggedValue> &onRejected, in PerformPromiseThen()
390 JSMutableHandle<JSTaggedValue> rejected(thread, onRejected.GetTaggedValue()); in PerformPromiseThen()
797 // l. Let onRejected b in PerformPromiseAny()
375 PerformPromiseThen(JSThread *thread, const JSHandle<JSPromise> &promise, const JSHandle<JSTaggedValue> &onFulfilled, const JSHandle<JSTaggedValue> &onRejected, const JSHandle<PromiseCapability> &capability) PerformPromiseThen() argument
799 JSHandle<JSPromiseAnyRejectElementFunction> onRejected = factory->NewJSPromiseAnyRejectElementFunction(); PerformPromiseAny() local
1003 JSHandle<JSPromiseAllSettledElementFunction> onRejected = PerformPromiseAllSettled() local
[all...]
H A Dbuiltins_promise.h48 /* Promise.prototype.catch ( onRejected ) */ \
52 /* Promise.prototype.then ( onFulfilled, onRejected ) */ \
70 // 25.4.5.1 Promise.prototype.catch ( onRejected )
72 // 25.4.5.3 Promise.prototype.then ( onFulfilled , onRejected )
77 const JSHandle<JSTaggedValue> &onRejected,
/arkcompiler/ets_runtime/ecmascript/module/
H A Djs_module_source_text.cpp1861 // 7. Let onRejected be CreateBuiltinFunction(rejectedClosure, 0, "", « »). in ExecuteAsyncModule()
1862 // 8. Perform PerformPromiseThen(capability.[[Promise]], onFulfilled, onRejected). in ExecuteAsyncModule()
1870 JSHandle<JSAsyncModuleRejectedFunction> onRejected = in ExecuteAsyncModule() local
1872 onRejected->SetModule(thread, module); in ExecuteAsyncModule()
1878 JSHandle<JSTaggedValue>::Cast(onRejected), tcap); in ExecuteAsyncModule()
/arkcompiler/ets_runtime/ecmascript/napi/include/
H A Djsnapi_expo.h1440 Local<PromiseRef> Then(const EcmaVM *vm, Local<FunctionRef> onFulfilled, Local<FunctionRef> onRejected);
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp6038 Local<PromiseRef> PromiseRef::Then(const EcmaVM *vm, Local<FunctionRef> onFulfilled, Local<FunctionRef> onRejected) in Then() argument
6048 JSHandle<JSTaggedValue> reject = JSNApiHelper::ToJSHandle(onRejected); in Then()

Completed in 24 milliseconds