/arkcompiler/ets_runtime/test/fuzztest/promiseref_fuzzer/ |
H A D | promiseref_fuzzer.cpp | 39 Local<FunctionRef> reject = FunctionRef::New(vm, RejectCallback); in PromiseRefCatchFuzzTest() local 40 promise->Catch(vm, reject); in PromiseRefCatchFuzzTest() 59 Local<FunctionRef> reject = FunctionRef::New(vm, RejectCallback); in PromiseRefThenFinallyFuzzTest() local 60 promise->Finally(vm, reject); in PromiseRefThenFinallyFuzzTest() 61 promise->Then(vm, reject, reject); in PromiseRefThenFinallyFuzzTest() 80 Local<FunctionRef> reject = FunctionRef::New(vm, RejectCallback); in PromiseRefThenWithTwoParameterFuzzTest() local 81 promise->Then(vm, reject); in PromiseRefThenWithTwoParameterFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
H A D | builtins_promise_job.cpp | 115 JSHandle<JSTaggedValue> reject(thread, resolvingFunctions->GetRejectFunction()); in PromiseResolveThenableJob() 117 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefined, undefined, 1); in PromiseResolveThenableJob() 136 JSHandle<JSPromiseReactionsFunction> reject(GetCallArg(argv, 1)); // 1 : reject method in DynamicImportJob() 143 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 168 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 178 return DynamicImport::ExecuteNativeOrJsonModule(thread, requestPath, moduleType, resolve, reject); in DynamicImportJob() 184 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 190 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 206 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, CatchException(thread, reject)); in DynamicImportJob() 254 CatchException(JSThread *thread, JSHandle<JSPromiseReactionsFunction> reject) CatchException() argument [all...] |
H A D | builtins_async_from_sync_iterator.cpp | 90 JSHandle<JSTaggedValue> reject(thread, pcap->GetReject()); in Throw() 92 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefinedValue, undefinedValue, 1); in Throw() 119 JSHandle<JSTaggedValue> reject(thread, pcap->GetReject()); in Throw() 121 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefinedValue, undefinedValue, 1); in Throw() 197 JSHandle<JSTaggedValue> reject(thread, pcap->GetReject()); in Return() 199 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefinedValue, undefinedValue, 1); in Return()
|
H A D | builtins_promise_job.h | 27 static JSTaggedValue CatchException(JSThread *thread, JSHandle<JSPromiseReactionsFunction> reject);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_promise_test.cpp | 45 JSHandle<JSTaggedValue> reject(thread, reactions->GetRejectFunction()); in HWTEST_F_L0() 47 EXPECT_EQ(reject->IsCallable(), true); in HWTEST_F_L0() 61 JSHandle<JSPromiseReactionsFunction> reject(thread, capbility->GetReject()); in HWTEST_F_L0() 66 JSHandle<JSPromise> rejectedPromise(thread, reject->GetPromise()); in HWTEST_F_L0() 100 JSHandle<JSTaggedValue> reject(thread, capbility->GetReject()); in HWTEST_F_L0() 102 EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefined, undefined, 1); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
H A D | js_dynamic_import.cpp | 34 JSHandle<JSPromiseReactionsFunction> reject, in ExecuteNativeOrJsonModule() 70 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, BuiltinsPromiseJob::CatchException(thread, reject)); in ExecuteNativeOrJsonModule() 76 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, BuiltinsPromiseJob::CatchException(thread, reject)); in ExecuteNativeOrJsonModule() 31 ExecuteNativeOrJsonModule(JSThread *thread, const CString &specifierString, ModuleTypes moduleType, JSHandle<JSPromiseReactionsFunction> resolve, JSHandle<JSPromiseReactionsFunction> reject, const JSPandaFile *jsPandaFile) ExecuteNativeOrJsonModule() argument
|
H A D | js_dynamic_import.h | 28 JSHandle<JSPromiseReactionsFunction> reject, const JSPandaFile *jsPandaFile = nullptr);
|
/arkcompiler/ets_runtime/test/moduletest/arrayreducecase/ |
H A D | arrayreducecase.js | 67 return new Promise((resolve, reject) => { 73 return new Promise((resolve, reject) => { 83 return new Promise((resolve, reject) => {
|
/arkcompiler/ets_runtime/test/moduletest/promise/ |
H A D | promise.js | 22 var p = new Promise((resolve, reject) => { 25 var p1 = Promise.reject(1357); 34 print("reject"); 51 print("reject");
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefispromisevalue_fuzzer/ |
H A D | jsvaluerefispromisevalue_fuzzer.cpp | 44 Local<FunctionRef> reject = FunctionRef::New(vm, nativeFunc, deleter, (void *)(data + size)); in JSValueRefIsPromiseValueFuzzTest() local 45 Local<PromiseRef> catchPromise = promise->Catch(vm, reject); in JSValueRefIsPromiseValueFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/ |
H A D | js_promise.cpp | 41 // 5. Let reject be a new built-in function object as defined in Promise Reject Functions (25.4.1.3.1). in CreateResolvingFunctions() 42 JSHandle<JSPromiseReactionsFunction> reject = factory->CreateJSPromiseReactionsFunction( in CreateResolvingFunctions() local 44 // 6. Set the [[Promise]] internal slot of reject to promise. in CreateResolvingFunctions() 45 reject->SetPromise(thread, promise); in CreateResolvingFunctions() 46 // 7. Set the [[AlreadyResolved]] internal slot of reject to alreadyResolved. in CreateResolvingFunctions() 47 reject->SetAlreadyResolved(thread, record); in CreateResolvingFunctions() 48 // 8. Return a new Record { [[Resolve]]: resolve, [[Reject]]: reject }. in CreateResolvingFunctions() 51 reactions->SetRejectFunction(thread, reject.GetTaggedValue()); in CreateResolvingFunctions() 109 THROW_TYPE_ERROR_AND_RETURN(thread, "NewPromiseCapability: reject is not a callable function!", in NewPromiseCapability() 148 // 7. When a promise is rejected without any handlers, it is called with its operation argument set to "reject" in RejectPromise() [all...] |
/arkcompiler/ets_runtime/test/moduletest/moduleTopLevelAwait/ |
H A D | moduleTopLevelAwait.js | 25 export default await Promise.reject("fail")
|
/arkcompiler/ets_runtime/test/executiontest/js/ |
H A D | termination_5.js | 29 new Promise((resolve, reject) => {
|
H A D | termination_6.js | 18 new Promise((resolve, reject) => {
|
/arkcompiler/ets_runtime/test/moduletest/deregistermodule/ |
H A D | deregistermodule.js | 23 return new Promise((resolve, reject)=> {
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/async-generator/file/ |
H A D | async-await-ut.js | 23 return new Promise((resolve, reject) => {
|
H A D | async-ut.js | 23 return new Promise((resolve, reject) => {
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/async-generator/object/ |
H A D | async-ut.js | 23 return new Promise((resolve, reject) => {
|
H A D | async-await-ut.js | 23 return new Promise((resolve, reject) => {
|
/arkcompiler/ets_frontend/es2panda/test/compiler/js/async-generator/class/ |
H A D | async-ut.js | 23 return new Promise((resolve, reject) => {
|
H A D | async-await-ut.js | 23 return new Promise((resolve, reject) => {
|
H A D | generator-async-await-return-ut.js | 27 return new Promise((resolve, reject) => {
|
H A D | generator-async-return-ut.js | 27 return new Promise((resolve, reject) => {
|
H A D | generator-async-await-ut.js | 27 return new Promise((resolve, reject) => {
|
/arkcompiler/runtime_core/static_core/runtime/templates/ |
H A D | bridge_helpers_static.rb | 28 Panda::instructions.reject(&:prefix).select do |insn|
|