/arkcompiler/ets_runtime/test/fuzztest/promiseref_fuzzer/ |
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/ |
D | builtins_promise_job.cpp | 123 JSHandle<JSTaggedValue> reject(thread, resolvingFunctions->GetRejectFunction()); in PromiseResolveThenableJob() local 125 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefined, undefined, 1); in PromiseResolveThenableJob() 144 JSHandle<JSPromiseReactionsFunction> reject(GetCallArg(argv, 1)); // 1 : reject method in DynamicImportJob() local 151 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 177 …urn DynamicImport::ExecuteNativeOrJsonModule(thread, specifierString, moduleType, resolve, reject); in DynamicImportJob() 183 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 189 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, CatchException(thread, reject)); in DynamicImportJob() 197 THROW_NEW_ERROR_AND_RETURN_VALUE(thread, error, CatchException(thread, reject)); in DynamicImportJob() 205 THROW_REFERENCE_ERROR_AND_RETURN(thread, msg.c_str(), CatchException(thread, reject)); in DynamicImportJob() 210 thread, jsonRecordName, ModuleTypes::JSON_MODULE, resolve, reject, jsPandaFile.get()); in DynamicImportJob() [all …]
|
D | builtins_async_from_sync_iterator.cpp | 96 JSHandle<JSTaggedValue> reject(thread, pcap->GetReject()); in Throw() local 98 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefinedValue, undefinedValue, 1); in Throw() 123 JSHandle<JSTaggedValue> reject(thread, pcap->GetReject()); in Throw() local 125 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefinedValue, undefinedValue, 1); in Throw() 199 JSHandle<JSTaggedValue> reject(thread, pcap->GetReject()); in Return() local 201 EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefinedValue, undefinedValue, 1); in Return()
|
D | builtins_promise_job.h | 27 …static JSTaggedValue CatchException(JSThread *thread, JSHandle<JSPromiseReactionsFunction> reject);
|
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
D | Promise.ets | 35 …constructor(callback: (resolve: (value: T) => void throws, reject: (error: Object|null) => void) =… 174 static reject<U>(value: U): Promise<U> { 182 …let p = new Promise<Object>((resolve: (value: Object) => void, reject: (error: Object|null) => voi… 184 new PromiseConcurrency(resolve, reject).all(promises); 190 …let p = new Promise<Object>((resolve: (value: Object) => void, reject: (error: Object|null) => voi… 192 new PromiseConcurrency(resolve, reject).allSettled(promises); 198 …let p = new Promise<Object>((resolve: (value: Object) => void, reject: (error: Object|null) => voi… 200 new PromiseConcurrency(resolve, reject).any(promises); 206 …let p = new Promise<Object>((resolve: (value: Object) => void, reject: (error: Object|null) => voi… 208 new PromiseConcurrency(resolve, reject).race(promises); [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_promise_test.cpp | 69 JSHandle<JSTaggedValue> reject(thread, reactions->GetRejectFunction()); in HWTEST_F_L0() local 71 EXPECT_EQ(reject->IsCallable(), true); in HWTEST_F_L0() 85 JSHandle<JSPromiseReactionsFunction> reject(thread, capbility->GetReject()); in HWTEST_F_L0() local 90 JSHandle<JSPromise> rejectedPromise(thread, reject->GetPromise()); in HWTEST_F_L0() 124 JSHandle<JSTaggedValue> reject(thread, capbility->GetReject()); in HWTEST_F_L0() local 126 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, reject, undefined, undefin… in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/arrayreducecase/ |
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/ |
D | promise.js | 22 var p = new Promise((resolve, reject) => { 25 var p1 = Promise.reject(1357);
|
D | expect_output.txt | 14 reject
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_dynamic_import.cpp | 31 JSHandle<JSPromiseReactionsFunction> reject, in ExecuteNativeOrJsonModule() argument 65 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, BuiltinsPromiseJob::CatchException(thread, reject)); in ExecuteNativeOrJsonModule() 71 RETURN_VALUE_IF_ABRUPT_COMPLETION(thread, BuiltinsPromiseJob::CatchException(thread, reject)); in ExecuteNativeOrJsonModule()
|
D | js_dynamic_import.h | 28 JSHandle<JSPromiseReactionsFunction> reject, const JSPandaFile *jsPandaFile = nullptr);
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefispromisevalue_fuzzer/ |
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/ |
D | js_promise.cpp | 49 JSHandle<JSPromiseReactionsFunction> reject = factory->CreateJSPromiseReactionsFunction( in CreateResolvingFunctions() local 52 reject->SetPromise(thread, promise); in CreateResolvingFunctions() 54 reject->SetAlreadyResolved(thread, record); in CreateResolvingFunctions() 58 reactions->SetRejectFunction(thread, reject.GetTaggedValue()); in CreateResolvingFunctions()
|
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
D | catchParamScope.ets | 16 function reject(error: Object): void { 23 reject(error);
|
/arkcompiler/ets_runtime/test/executiontest/js/ |
D | termination_6.js | 18 new Promise((resolve, reject) => {
|
D | termination_5.js | 29 new Promise((resolve, reject) => {
|
/arkcompiler/runtime_core/static_core/runtime/templates/ |
D | bridge_helpers_static.rb | 28 Panda::instructions.reject(&:prefix).select do |insn|
|
/arkcompiler/ets_runtime/test/moduletest/deregistermodule/ |
D | deregistermodule.js | 23 return new Promise((resolve, reject)=> {
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/ |
D | promise_tests.ets | 230 let p = Promise.reject<Object>(new Object()); 283 let p = Promise.reject<Object>(new Object()); 487 let p2: Promise<Object> = Promise.reject<Object>("def"); 507 let p2: Promise<Object> = Promise.reject<Object>("def"); 549 let p1: Promise<Object> = Promise.reject<Object>("abc"); 550 let p2: Promise<Object> = Promise.reject<Object>("def"); 565 let p1: Promise<Object> = Promise.reject<Object>("abc"); 566 let p2: Promise<Object> = Promise.reject<Object>("def"); 567 let p3: Promise<Object> = Promise.reject<Object>("xyz"); 586 let p2: Promise<Object> = Promise.reject<Object>("def"); [all …]
|
/arkcompiler/runtime_core/static_core/docs/coroutines/ |
D | promise.plantuml | 8 + {static} reject(Object value)
|
/arkcompiler/runtime_core/isa/ |
D | combine.rb | 47 …raise 'Plugged in instructions must be prefixed' unless instructions.reject { |i| i['prefix'] }.em…
|
D | asserts.rb | 36 Panda.instructions.reject(&:prefix).size + Panda.prefixes.size <= 256 40 Panda.instructions.reject(&:prefix).sorted_by?(&:opcode_idx)
|
D | isapi.rb | 404 handlers = Panda.instructions.reject(&:prefix) + 408 Panda.prefixes.reject(&:public?) + 415 …(Panda.instructions.reject(&:prefix).map(&:opcode_idx).max + 1)..(Panda.prefixes.map(&:opcode_idx)… 419 max_invalid_idx = Panda.prefixes.reject(&:public?).map(&:opcode_idx).min || 256
|
/arkcompiler/runtime_core/static_core/isa/ |
D | combine.rb | 47 …raise 'Plugged in instructions must be prefixed' unless instructions.reject { |i| i['prefix'] }.em…
|
D | asserts.rb | 36 Panda.instructions.reject(&:prefix).size + Panda.prefixes.size <= 256 40 Panda.instructions.reject(&:prefix).sorted_by?(&:opcode_idx)
|