Home
last modified time | relevance | path

Searched refs:reject (Results 1 - 25 of 72) sorted by relevance

123

/arkcompiler/ets_runtime/test/fuzztest/promiseref_fuzzer/
H A 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/
H A Dbuiltins_promise_job.cpp115 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 Dbuiltins_async_from_sync_iterator.cpp90 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 Dbuiltins_promise_job.h27 static JSTaggedValue CatchException(JSThread *thread, JSHandle<JSPromiseReactionsFunction> reject);
/arkcompiler/ets_runtime/ecmascript/tests/
H A Djs_promise_test.cpp45 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 Djs_dynamic_import.cpp34 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 Djs_dynamic_import.h28 JSHandle<JSPromiseReactionsFunction> reject, const JSPandaFile *jsPandaFile = nullptr);
/arkcompiler/ets_runtime/test/moduletest/arrayreducecase/
H A 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/
H A Dpromise.js22 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 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/
H A Djs_promise.cpp41 // 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 DmoduleTopLevelAwait.js25 export default await Promise.reject("fail")
/arkcompiler/ets_runtime/test/executiontest/js/
H A Dtermination_5.js29 new Promise((resolve, reject) => {
H A Dtermination_6.js18 new Promise((resolve, reject) => {
/arkcompiler/ets_runtime/test/moduletest/deregistermodule/
H A Dderegistermodule.js23 return new Promise((resolve, reject)=> {
/arkcompiler/ets_frontend/es2panda/test/compiler/js/async-generator/file/
H A Dasync-await-ut.js23 return new Promise((resolve, reject) => {
H A Dasync-ut.js23 return new Promise((resolve, reject) => {
/arkcompiler/ets_frontend/es2panda/test/compiler/js/async-generator/object/
H A Dasync-ut.js23 return new Promise((resolve, reject) => {
H A Dasync-await-ut.js23 return new Promise((resolve, reject) => {
/arkcompiler/ets_frontend/es2panda/test/compiler/js/async-generator/class/
H A Dasync-ut.js23 return new Promise((resolve, reject) => {
H A Dasync-await-ut.js23 return new Promise((resolve, reject) => {
H A Dgenerator-async-await-return-ut.js27 return new Promise((resolve, reject) => {
H A Dgenerator-async-return-ut.js27 return new Promise((resolve, reject) => {
H A Dgenerator-async-await-ut.js27 return new Promise((resolve, reject) => {
/arkcompiler/runtime_core/static_core/runtime/templates/
H A Dbridge_helpers_static.rb28 Panda::instructions.reject(&:prefix).select do |insn|

Completed in 6 milliseconds

123