Home
last modified time | relevance | path

Searched refs:reject (Results 1 – 25 of 68) sorted by relevance

123

/arkcompiler/ets_runtime/test/fuzztest/promiseref_fuzzer/
Dpromiseref_fuzzer.cpp39 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/
Dbuiltins_promise_job.cpp123 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 …]
Dbuiltins_async_from_sync_iterator.cpp96 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()
Dbuiltins_promise_job.h27 …static JSTaggedValue CatchException(JSThread *thread, JSHandle<JSPromiseReactionsFunction> reject);
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DPromise.ets35 …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/
Djs_promise_test.cpp69 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/
Darrayreducecase.js67 return new Promise((resolve, reject) => {
73 return new Promise((resolve, reject) => {
83 return new Promise((resolve, reject) => {
/arkcompiler/ets_runtime/test/moduletest/promise/
Dpromise.js22 var p = new Promise((resolve, reject) => {
25 var p1 = Promise.reject(1357);
Dexpect_output.txt14 reject
/arkcompiler/ets_runtime/ecmascript/module/
Djs_dynamic_import.cpp31 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()
Djs_dynamic_import.h28 JSHandle<JSPromiseReactionsFunction> reject, const JSPandaFile *jsPandaFile = nullptr);
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefispromisevalue_fuzzer/
Djsvaluerefispromisevalue_fuzzer.cpp44 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/
Djs_promise.cpp49 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/
DcatchParamScope.ets16 function reject(error: Object): void {
23 reject(error);
/arkcompiler/ets_runtime/test/executiontest/js/
Dtermination_6.js18 new Promise((resolve, reject) => {
Dtermination_5.js29 new Promise((resolve, reject) => {
/arkcompiler/runtime_core/static_core/runtime/templates/
Dbridge_helpers_static.rb28 Panda::instructions.reject(&:prefix).select do |insn|
/arkcompiler/ets_runtime/test/moduletest/deregistermodule/
Dderegistermodule.js23 return new Promise((resolve, reject)=> {
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
Dpromise_tests.ets230 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/
Dpromise.plantuml8 + {static} reject(Object value)
/arkcompiler/runtime_core/isa/
Dcombine.rb47 …raise 'Plugged in instructions must be prefixed' unless instructions.reject { |i| i['prefix'] }.em…
Dasserts.rb36 Panda.instructions.reject(&:prefix).size + Panda.prefixes.size <= 256
40 Panda.instructions.reject(&:prefix).sorted_by?(&:opcode_idx)
Disapi.rb404 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/
Dcombine.rb47 …raise 'Plugged in instructions must be prefixed' unless instructions.reject { |i| i['prefix'] }.em…
Dasserts.rb36 Panda.instructions.reject(&:prefix).size + Panda.prefixes.size <= 256
40 Panda.instructions.reject(&:prefix).sorted_by?(&:opcode_idx)

123