Home
last modified time | relevance | path

Searched refs:Reject (Results 1 - 17 of 17) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/builtins/
H A Dbuiltins_promise.h40 V("reject", Reject, 1, INVALID) \
65 static JSTaggedValue Reject(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_promise_handler.h27 // es6 26.6.1.3.2 Promise Reject Functions
28 static JSTaggedValue Reject(EcmaRuntimeCallInfo *argv);
H A Dbuiltins_promise_handler.cpp100 // es6 25.4.1.3.1 Promise Reject Functions
101 JSTaggedValue BuiltinsPromiseHandler::Reject(EcmaRuntimeCallInfo *argv) in Reject() function in panda::ecmascript::builtins::BuiltinsPromiseHandler
104 BUILTINS_API_TRACE(argv->GetThread(), PromiseHandler, Reject); in Reject()
110 ASSERT_PRINT(reject->GetPromise().IsECMAObject(), "Reject: promise must be js object"); in Reject()
148 // 4. If promiseCapability.[[Reject]] is not undefined, throw a TypeError exception. in Executor()
153 // 6. Set promiseCapability.[[Reject]] to reject. in Executor()
555 // c. Return ? Call(promiseCapability.[[Reject]], undefined, « error »). in AnyRejectElementFunction()
H A Dbuiltins_promise.cpp64 const uint32_t argsLength = 2; // 2: «resolvingFunctions.[[Resolve]], resolvingFunctions.[[Reject]]» in PromiseConstructor()
72 // a. Let status be Call(resolvingFunctions.[[Reject]], undefined, «completion.[[value]]»). in PromiseConstructor()
275 JSTaggedValue BuiltinsPromise::Reject(EcmaRuntimeCallInfo *argv) in Reject() function in panda::ecmascript::builtins::BuiltinsPromise
278 BUILTINS_API_TRACE(argv->GetThread(), Promise, Reject); in Reject()
287 THROW_TYPE_ERROR_AND_RETURN(thread, "Reject: this value is not object", JSTaggedValue::Exception()); in Reject()
295 // 5. Let rejectResult be Call(promiseCapability.[[Reject]], undefined, «r»). in Reject()
541 // r. Let result be Invoke(nextPromise, "then", «‍resolveElement, resultCapability.[[Reject]]»). in PerformPromiseAll()
545 undefined, 2); // 2: «‍resolveElement, resultCapability.[[Reject]]» in PerformPromiseAll()
574 // j. Let result be Invoke(nextPromise, "then", «promiseCapability.[[Resolve]], promiseCapability.[[Reject]]»). in PerformPromiseRace()
794 // j. Let stepsRejected be the algorithm steps defined in Promise.any Reject Elemen in PerformPromiseAny()
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
H A Dstd_core_Promise.cpp101 hpromise->Reject(coro, hInternalPromise->GetValue(coro)); in EtsPromiseResolve()
125 hpromise->Reject(coro, herror.GetPtr()); in EtsPromiseReject()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_promise.h57 ACCESSORS(Reject, REJECT_OFFSET, SIZE);
H A Decma_vm.cpp707 reinterpret_cast<void *>(builtins::BuiltinsPromiseHandler::Reject),
H A Druntime_call_id.h684 V(PromiseHandler, Reject) \
704 V(Promise, Reject) \
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
H A Dets_promise.h177 void Reject(EtsCoroutine *coro, EtsObject *error) in Reject() function in ark::ets::EtsPromise
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
H A Dbuiltins_promise_test.cpp119 result = BuiltinsPromise::Reject(ecmaRuntimeCallInfo); in PromiseAlgorithm()
252 // promise1 Enter Reject() as a parameter. in HWTEST_F_L0()
541 * @tc.desc: Testing the Then() function with the Reject() function
553 * @tc.steps: step1. var p1 = Promise.Reject(5) in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/include/
H A Djsnapi_expo.h1451 bool Reject(const EcmaVM *vm, uintptr_t reason);
1452 bool Reject(const EcmaVM *vm, Local<JSValueRef> reason);
/arkcompiler/ets_runtime/ecmascript/napi/test/
H A Djsnapi_first_tests.cpp620 * check if the value of this string is equal to "Reject".
629 ASSERT_EQ(Local<StringRef>(reason)->ToString(info->GetVM()), "Reject"); in CheckReject()
650 Local<StringRef> reason = StringRef::NewFromUtf8(vm_, "Reject"); in HWTEST_F_L0()
651 ASSERT_TRUE(capability->Reject(vm_, reason)); in HWTEST_F_L0()
667 Local<StringRef> reason = StringRef::NewFromUtf8(vm_, "Reject"); in HWTEST_F_L0()
668 ASSERT_TRUE(capability->Reject(vm_, reinterpret_cast<uintptr_t>(*reason))); in HWTEST_F_L0()
679 * Reject:Used to verify whether the reason for rejecting the Promise object was successfully obtained.
H A Djsnapi_sample.cpp2241 capability->Reject(vm_, StringRef::NewFromUtf8(vm_, "Divide zero")); in HWTEST_F_L0()
H A Dffi_workload.cpp827 (void)capability->Reject(vm_, value); in HWTEST_F_L0()
830 TEST_TIME(PromiseCapabilityRef::Reject); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
H A Dsnapshot_processor.cpp627 reinterpret_cast<uintptr_t>(Promise::Reject),
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
H A Dets_napi_native_interface.cpp2764 promise->Reject(coro, error); in DeferredReject()
/arkcompiler/ets_runtime/ecmascript/napi/
H A Djsnapi_expo.cpp1978 bool PromiseCapabilityRef::Reject(const EcmaVM *vm, uintptr_t reason) in Reject() function in panda::PromiseCapabilityRef
2006 bool PromiseCapabilityRef::Reject(const EcmaVM *vm, Local<JSValueRef> reason) in Reject() function in panda::PromiseCapabilityRef

Completed in 59 milliseconds