/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_promise.h | 40 V("reject", Reject, 1, INVALID) \ 65 static JSTaggedValue Reject(EcmaRuntimeCallInfo *argv);
|
H A D | builtins_promise_handler.h | 27 // es6 26.6.1.3.2 Promise Reject Functions 28 static JSTaggedValue Reject(EcmaRuntimeCallInfo *argv);
|
H A D | builtins_promise_handler.cpp | 100 // 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 D | builtins_promise.cpp | 64 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 D | std_core_Promise.cpp | 101 hpromise->Reject(coro, hInternalPromise->GetValue(coro)); in EtsPromiseResolve() 125 hpromise->Reject(coro, herror.GetPtr()); in EtsPromiseReject()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_promise.h | 57 ACCESSORS(Reject, REJECT_OFFSET, SIZE);
|
H A D | ecma_vm.cpp | 707 reinterpret_cast<void *>(builtins::BuiltinsPromiseHandler::Reject),
|
H A D | runtime_call_id.h | 684 V(PromiseHandler, Reject) \ 704 V(Promise, Reject) \
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
H A D | ets_promise.h | 177 void Reject(EtsCoroutine *coro, EtsObject *error) in Reject() function in ark::ets::EtsPromise
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
H A D | builtins_promise_test.cpp | 119 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 D | jsnapi_expo.h | 1451 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 D | jsnapi_first_tests.cpp | 620 * 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 D | jsnapi_sample.cpp | 2241 capability->Reject(vm_, StringRef::NewFromUtf8(vm_, "Divide zero")); in HWTEST_F_L0()
|
H A D | ffi_workload.cpp | 827 (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 D | snapshot_processor.cpp | 627 reinterpret_cast<uintptr_t>(Promise::Reject),
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
H A D | ets_napi_native_interface.cpp | 2764 promise->Reject(coro, error); in DeferredReject()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
H A D | jsnapi_expo.cpp | 1978 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
|