Home
last modified time | relevance | path

Searched refs:onFulfilled (Results 1 - 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
H A Djs_async_from_sync_iterator.cpp75 // 9.Let onFulfilled be ! CreateBuiltinFunction(steps, length, "", « [[Done]] »). in AsyncFromSyncIteratorContinuation()
76 JSHandle<JSAsyncFromSyncIterUnwarpFunction> onFulfilled = factory->NewJSAsyncFromSyncIterUnwarpFunction(); in AsyncFromSyncIteratorContinuation() local
77 // 10.Set onFulfilled.[[Done]] to done. in AsyncFromSyncIteratorContinuation()
79 onFulfilled->SetDone(thread, JSTaggedValue(done)); in AsyncFromSyncIteratorContinuation()
80 // 11.Perform ! PerformPromiseThen(valueWrapper, onFulfilled, undefined, promiseCapability). in AsyncFromSyncIteratorContinuation()
83 JSHandle<JSTaggedValue>::Cast(onFulfilled), in AsyncFromSyncIteratorContinuation()
H A Djs_async_generator_object.cpp170 // 5. Let onFulfilled be ! CreateBuiltinFunction(stepsFulfilled, in AsyncGeneratorResumeNext()
178 JSHandle<JSAsyncGeneratorResNextRetProRstFtn> onFulfilled = in AsyncGeneratorResumeNext() local
180 onFulfilled->SetAsyncGeneratorObject(thread, generator); in AsyncGeneratorResumeNext()
186 // 11. Perform ! PerformPromiseThen(promise, onFulfilled, onRejected). in AsyncGeneratorResumeNext()
191 thread, handPromise, JSHandle<JSTaggedValue>::Cast(onFulfilled), in AsyncGeneratorResumeNext()
/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_promise.cpp340 // 25.4.5.3 Promise.prototype.then ( onFulfilled , onRejected )
368 JSHandle<JSTaggedValue> onFulfilled = BuiltinsBase::GetCallArg(argv, 0); 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()
376 const JSHandle<JSTaggedValue> &onFulfilled, in PerformPromiseThen()
385 JSMutableHandle<JSTaggedValue> fulfilled(thread, onFulfilled.GetTaggedValue()); in PerformPromiseThen()
981 // l. Let onFulfilled be CreateBuiltinFunction(stepsFulfilled, lengthFulfilled, "", in PerformPromiseAllSettled()
983 JSHandle<JSPromiseAllSettledElementFunction> onFulfilled = in PerformPromiseAllSettled() local
988 // n. Set onFulfilled.[[AlreadyCalled]] to alreadyCalled. in PerformPromiseAllSettled()
989 onFulfilled in PerformPromiseAllSettled()
375 PerformPromiseThen(JSThread *thread, const JSHandle<JSPromise> &promise, const JSHandle<JSTaggedValue> &onFulfilled, const JSHandle<JSTaggedValue> &onRejected, const JSHandle<PromiseCapability> &capability) PerformPromiseThen() argument
[all...]
H A Dbuiltins_promise.h52 /* Promise.prototype.then ( onFulfilled, onRejected ) */ \
72 // 25.4.5.3 Promise.prototype.then ( onFulfilled , onRejected )
76 const JSHandle<JSTaggedValue> &onFulfilled,
/arkcompiler/ets_runtime/ecmascript/module/
H A Djs_module_source_text.cpp1856 // 5. Let onFulfilled be CreateBuiltinFunction(fulfilledClosure, 0, "", « »). in ExecuteAsyncModule()
1862 // 8. Perform PerformPromiseThen(capability.[[Promise]], onFulfilled, onRejected). in ExecuteAsyncModule()
1866 JSHandle<JSAsyncModuleFulfilledFunction> onFulfilled = in ExecuteAsyncModule() local
1868 onFulfilled->SetModule(thread, module); in ExecuteAsyncModule()
1877 thread, promise, JSHandle<JSTaggedValue>::Cast(onFulfilled), 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
6047 JSHandle<JSTaggedValue> resolver = JSNApiHelper::ToJSHandle(onFulfilled); in Then()

Completed in 23 milliseconds