Home
last modified time | relevance | path

Searched defs:promise (Results 1 – 18 of 18) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/
Djs_promise.cpp34const JSHandle<JSPromise> &promise) in CreateResolvingFunctions()
62 JSTaggedValue JSPromise::FulfillPromise(JSThread *thread, const JSHandle<JSPromise> &promise, in FulfillPromise()
107 JSHandle<JSPromise> promise(thread, result); in NewPromiseCapability() local
139 JSTaggedValue JSPromise::RejectPromise(JSThread *thread, const JSHandle<JSPromise> &promise, in RejectPromise()
Djs_async_generator_object.cpp169 JSTaggedValue promise = PromiseResolve(thread, in AsyncGeneratorResumeNext() local
278 JSHandle<JSObject> promise(thread, pcap->GetPromise()); in AsyncGeneratorEnqueue() local
305 JSHandle<JSObject> promise(thread, pcap->GetPromise()); in AsyncGeneratorEnqueue() local
309 …lue JSAsyncGeneratorObject::PromiseResolve(JSThread *thread, const JSHandle<JSTaggedValue> promise, in PromiseResolve()
Djs_async_function.cpp83 JSHandle<JSPromise> promise(thread, pcap->GetPromise()); in AsyncFunctionAwait() local
142 JSHandle<JSObject> promise = JSHandle<JSObject>::Cast(promiseValue); in AsyncFunctionAwait() local
Djs_async_from_sync_iterator.cpp80 JSHandle<JSObject> promise = JSHandle<JSObject>::Cast(valueWrapper); in AsyncFromSyncIteratorContinuation() local
Decma_vm.cpp582 auto promise = JSPromise::Cast(result.GetTaggedObject()); in TriggerConcurrentCallback() local
Decma_context.h145 void PromiseRejectionTracker(const JSHandle<JSPromise> &promise, in PromiseRejectionTracker()
/arkcompiler/ets_runtime/test/moduletest/forawaitof/
Dforawaitof.js35 let promise = fn(); variable
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/systemModuleAmbientDeclarations/
Dfile1.ts26 export let promise = Promise; variable
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_promise_test.cpp78 JSHandle<JSTaggedValue> promise = env->GetPromiseFunction(); in HWTEST_F_L0() local
99 JSHandle<JSTaggedValue> promise = env->GetPromiseFunction(); in HWTEST_F_L0() local
118 JSHandle<JSTaggedValue> promise = env->GetPromiseFunction(); in HWTEST_F_L0() local
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_promise_test.cpp133 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
163 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
210 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
240 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
286 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
357 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
455 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
552 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
606 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
662 JSHandle<JSFunction> promise = JSHandle<JSFunction>::Cast(env->GetPromiseFunction()); in HWTEST_F_L0() local
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_async_from_sync_iterator.cpp130 JSHandle<JSObject> promise(thread, pcap->GetPromise()); in Throw() local
174 JSHandle<JSObject> promise(thread, pcap->GetPromise()); in Return() local
206 JSHandle<JSObject> promise(thread, pcap->GetPromise()); in Return() local
Dbuiltins_promise.cpp282 JSHandle<JSObject> promise(thread, promiseCapability->GetPromise()); in Resolve() local
319 JSHandle<JSObject> promise(thread, promiseCapability->GetPromise()); in Reject() local
341 JSHandle<JSTaggedValue> promise = GetThis(argv); in Catch() local
370 JSHandle<JSObject> promise = JSHandle<JSObject>::Cast(thisValue); in Then() local
387 …ggedValue BuiltinsPromise::PerformPromiseThen(JSThread *thread, const JSHandle<JSPromise> &promise, in PerformPromiseThen()
604 JSHandle<JSTaggedValue> promise(thread, capability->GetPromise()); in PerformPromiseRace() local
1060 JSHandle<JSTaggedValue> promise = GetThis(argv); in Finally() local
Dbuiltins_promise_job.cpp99 JSHandle<JSTaggedValue> promise = GetCallArg(argv, 0); in PromiseResolveThenableJob() local
Dbuiltins_promise_handler.cpp379 JSHandle<JSTaggedValue> promise(thread, promiseCapability->GetPromise()); in PromiseResolve() local
/arkcompiler/ets_runtime/test/moduletest/stubbuilder/
Dstubbuilder.js885 let promise = new Promise((resolve, reject) => { variable
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_tests.cpp423 Local<PromiseRef> promise = capability->GetPromise(vm_); in HWTEST_F_L0() local
455 Local<PromiseRef> promise = capability->GetPromise(vm_); in HWTEST_F_L0() local
1187 Local<PromiseRef> promise = capability->GetPromise(vm_); in HWTEST_F_L0() local
1499 Local<JSValueRef> promise(toString); in HWTEST_F_L0() local
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp816 const JSHandle<JSPromise> promise, in HostPromiseRejectionTracker()
865 PromiseRejectInfo::PromiseRejectInfo(Local<JSValueRef> promise, Local<JSValueRef> reason, in PromiseRejectInfo()
1984 JSHandle<JSTaggedValue> promise = JSNApiHelper::ToJSHandle(this); in Catch() local
2005 JSHandle<JSTaggedValue> promise = JSNApiHelper::ToJSHandle(this); in Finally() local
2026 JSHandle<JSTaggedValue> promise = JSNApiHelper::ToJSHandle(this); in Then() local
2047 JSHandle<JSTaggedValue> promise = JSNApiHelper::ToJSHandle(this); in Then() local
/arkcompiler/toolchain/tooling/test/
Dpt_types_test.cpp415 Local<PromiseRef> promise = capability->GetPromise(ecmaVm); in HWTEST_F_L0() local