Home
last modified time | relevance | path

Searched refs:resolve (Results 1 – 25 of 128) sorted by relevance

123456

/arkcompiler/ets_runtime/test/moduletest/arrayreducecase/
Darrayreducecase.js62 Promise.resolve(input),
67 return new Promise((resolve, reject) => {
68 resolve(a * 5);
73 return new Promise((resolve, reject) => {
74 resolve(a * 2);
83 return new Promise((resolve, reject) => {
84 resolve(a * 4);
/arkcompiler/ets_frontend/ts2panda/
Dwebpack.config.js24 root: path.resolve(__dirname),
35 resolve: { property
45 path: path.resolve(__dirname, 'dist/src'),
56 configFile: path.resolve(__dirname, './tsconfig.json'),
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/lambda/
Dcapture_var.ets17 constructor(callback: (resolve: (value: int) => void) => void) {
20 instance.resolve(value);
24 private resolve(value: int): void {
32 let foo = new Foo((resolve: (value: int) => void): void => {
33 resolve(5);
Dcapture_this.ets17 constructor(callback: (resolve: (value: int) => void) => void) {
19 this.resolve(value);
23 private resolve(value: int): void {
31 let foo = new Foo((resolve: (value: int) => void): void => {
32 resolve(5);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
Dpromise_tests.ets72 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
91 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
92 resolve(obj);
114 let p = new Promise<Object>((resolve: (value: Object) => void): void throws => {
142 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
143 fixture.fn = resolve;
180 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
181 resolve(new Object());
196 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
197 resolve(new Object());
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_promise_test.cpp68 JSHandle<JSTaggedValue> resolve(thread, reactions->GetResolveFunction()); in HWTEST_F_L0() local
70 EXPECT_EQ(resolve->IsCallable(), true); in HWTEST_F_L0()
84 JSHandle<JSPromiseReactionsFunction> resolve(thread, capbility->GetResolve()); in HWTEST_F_L0() local
86 EXPECT_EQ(resolve.GetTaggedValue().IsCallable(), true); in HWTEST_F_L0()
87 EXPECT_EQ(resolve.GetTaggedValue().IsCallable(), true); in HWTEST_F_L0()
89 JSHandle<JSPromise> resolvedPromise(thread, resolve->GetPromise()); in HWTEST_F_L0()
105 JSHandle<JSTaggedValue> resolve(thread, capbility->GetResolve()); in HWTEST_F_L0() local
107 …EcmaRuntimeCallInfo *info = EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefi… in HWTEST_F_L0()
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DPromise.ets25 constructor(callback: (resolve: (value: T) => void) => void throws) {
35 …constructor(callback: (resolve: (value: T) => void throws, reject: (error: Object|null) => void) =…
162 static resolve(): Promise<void> {
168 static resolve<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);
[all …]
/arkcompiler/ets_runtime/test/moduletest/promise/
Dpromise.js22 var p = new Promise((resolve, reject) => {
23 resolve(1479);
26 var p2 = Promise.resolve(2468);
/arkcompiler/ets_runtime/test/aottest/async_context/
Dds_helper.ts22 return new Promise((resolve) => {
24 resolve(this.dsHelper)
Dexpect_output.txt15 getDsHelper resolve
20 getDsHelper resolve
/arkcompiler/ets_runtime/test/executiontest/js/
Dtermination_6.js18 new Promise((resolve, reject) => {
19 resolve(true);
Dtermination_5.js29 new Promise((resolve, reject) => {
30 resolve(true);
/arkcompiler/ets_runtime/test/aottest/async_env/
Dasync_env.ts25 return new Promise((resolve) => {
26 resolve(this.dsHelper)
/arkcompiler/ets_runtime/test/moduletest/deregistermodule/
Dderegistermodule.js23 return new Promise((resolve, reject)=> {
24 resolve("done");
/arkcompiler/runtime_core/disassembler/tests/js/
Dcolumn-number6.js35 await Promise.resolve('a');
49 let test = await Promise.resolve('a')
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dgeneric_function_call_5.ets17 constructor(callback: (resolve: (value: T) => void) => void throws) {
24 return new P<Object>((resolve: (obj: Object) => void): void => {
25 resolve("resolved");
/arkcompiler/runtime_core/libark_defect_scan_aux/tests/unittest/
Dasync_function_test.js48 await new Promise(resolve => setTimeout(resolve, time));
/arkcompiler/ets_frontend/arkguard/src/cli/
DSecHarmony.ts37 configPath = path.resolve(configPath);
40 const resolved: string = path.resolve(value);
/arkcompiler/toolchain/tooling/test/testcases/js/
Dstep.js19 return new Promise(resolve => {
20 resolve("test");
/arkcompiler/ets_runtime/ecmascript/
Djs_promise.cpp42 JSHandle<JSPromiseReactionsFunction> resolve = factory->CreateJSPromiseReactionsFunction( in CreateResolvingFunctions() local
45 resolve->SetPromise(thread, promise); in CreateResolvingFunctions()
47 resolve->SetAlreadyResolved(thread, record); in CreateResolvingFunctions()
57 reactions->SetResolveFunction(thread, resolve.GetTaggedValue()); in CreateResolvingFunctions()
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dlambda-lambda.ets16 function foo(callback: (resolve: (val: int) => void) => void): void {
20 foo((resolve: (val: int) => void): void => {
Dgeneric_resolve.ets24 promise.resolve(res);
29 private native resolve(value: T): void;
Dasync_with_lambda.ets34 return new Promise<Object>((resolve: (value: Object) => void): void => {
35 resolve(new Object());
/arkcompiler/ets_frontend/arkguard/src/transformers/
DTransformerManager.ts18 import {join, resolve} from 'path';
52 let subPath: string = resolve(TransformerManager.sLoadPath + '/' + subFile);
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_async_iterator.cpp54 JSHandle<JSTaggedValue> resolve(thread, pcap->GetResolve()); in Return() local
56 …EcmaRuntimeCallInfo* info = EcmaInterpreter::NewRuntimeCallInfo(thread, resolve, undefined, undefi… in Return()

123456