Home
last modified time | relevance | path

Searched refs:arr1 (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/ets_runtime/test/moduletest/arrayjoin/
Darrayjoin.js34 var arr1 = [1];
35 arr1.push(arr1);
36 arr1.push(arr1);
37 print(arr1.toString());
38 print(arr1.toString());
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DListUtil.spec.ts81 let arr1 = undefined; variable
84 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2);
89 let arr1 = ['1', '2', '3']; variable
94 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2);
102 let arr1 = ['1', '2', '3', '4']; variable
107 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2);
115 let arr1 = undefined; variable
119 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2, arr3);
124 let arr1 = ['1', '2', '3']; variable
130 const arrUnique = ListUtil.uniqueMergeList(arr1, arr2, arr3);
[all …]
/arkcompiler/ets_runtime/test/typeinfer/throwdyn_1/
Dthrowdyn_1.ts18 let arr1 :number[] = [1, 2, 3];
19 AssertType(arr1, "number[]");
20 throw arr1;
/arkcompiler/ets_frontend/arkguard/test/grammar/array_validation/
Dreadonly_array.ts21 let arr1 = arr as number[]; variable
23 arr1[0] = 0;
25 assert(arr1[0] === 0, 'success');
Darray_some.ts20 let arr1 = arr.some(function (value) { variable
24 assert(arr1 === true, 'success');
Darray_every.ts20 let arr1 = arr.every( variable
26 assert(arr1 === true, 'success');
Darray_expanding.ts18 var arr1 = [1, 2, 3]; variable
20 var arr3 = [...arr1, ...arr2]
Darray_map.ts20 let arr1 = arr.map(function (value) { variable
25 assert(value * 2 + 1 === arr1[index], 'success');
/arkcompiler/ets_runtime/test/typeinfer/tsarraytobuiltin/
Dtsarraytobuiltin.ts26 let arr1:number[] = new Array(100).fill(0);
27 AssertType(arr1, "number[]");
28 AssertType(arr1[0], "number");
29 AssertType(arr1[t], "number");
/arkcompiler/ets_runtime/test/typeinfer/typeof/
Dtypeof.ts18 let arr1:string[]= [];
19 AssertType(typeof(arr1), "string[]");
/arkcompiler/ets_runtime/test/moduletest/regexp/
Dregexp.js263 let arr1 = []
266 arr1.push(reg49.test("Zg=="));
267 arr1.push(reg49.test("Zm8="));
268 arr1.push(reg49.test("Zm9v"));
269 arr1.push(reg49.test("Zm9vYg=="));
270 arr1.push(reg49.test("Zm9vYmE="));
271 arr1.push(reg49.test("Zm9vYmFy"));
272 arr1.push(reg49.test(
275 arr1.push(reg49.test("Vml2YW11cyBmZXJtZW50dW0gc2VtcGVyIHBvcnRhLg=="));
276 arr1.push(reg49.test("U3VzcGVuZGlzc2UgbGVjdHVzIGxlbw=="));
[all …]
/arkcompiler/ets_runtime/test/aottest/typedarray_load_store/
Dtypedarray_load_store.ts60 let arr1 = new Int32Array(buffer, 20, 4); variable
62 IntegerArray(arr1);
107 let arr1 = new Float64Array(buffer, 16, 4); variable
109 FloatArray(arr1);
/arkcompiler/ets_runtime/test/moduletest/arraywith/
Darraywith.js25 const arr1 = arr0.with(0, 0); constant
27 print(arr1.indexOf(undefined));
/arkcompiler/ets_runtime/test/moduletest/arraytospliced/
Darraytospliced.js25 const arr1 = arr0.toSpliced(1, 2); constant
27 print(arr1.indexOf(undefined));
/arkcompiler/ets_runtime/test/moduletest/arraytoreversed/
Darraytoreversed.js25 const arr1 = arr0.toReversed(); constant
27 print(arr1.indexOf(undefined));
/arkcompiler/ets_runtime/test/typeinfer/add2dyn/
Dadd2dyn.ts23 let arr1 : number[] = [1, 2];
25 let ans2 = arr1[0] + arr2[0];
38 let ans5 = arr1[0] + arr3[0];
/arkcompiler/ets_runtime/test/typeinfer/ldobjbyvalue/
Dldobjbyvalue.ts28 let arr1:string[] = ["a", "b", "c"];
39 AssertType(arr1[t], "string");
/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_queue.js91 var arr1 = []; variable
100 arr1.push(item);
104 if (arr1[j - 5] != j) {
Dcontainer_deque.js108 var arr1 = []; variable
118 arr1.push(item);
122 if (arr1[j - 5] != j) {
Dcontainer_hashset.js105 let arr1 = ["aa", "bb", "cc"]; variable
108 map.set(arr1[j], item == arr1[j]);
Dcontainer_lightweightmap.js62 let arr1 = ["aa", "bb", "cc"]; variable
65 res.set(arr1[j], item[1] == arr1[j]);
Dcontainer_treeset.js124 let arr1 = ["aa", "bb", "cc"]; variable
127 map.set(arr1[j], item == arr1[j]);
Dcontainer_treemap.js137 let arr1 = ["aa", "bb", "cc"]; variable
140 res.set(arr1[j], item[1] == arr1[j]);
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/
Dspreadoperator.js23 var arr1 = [...Array(16).keys()]; variable
24 print(arr1.length);
25 print(arr1);
/arkcompiler/ets_runtime/test/moduletest/array/
Darray.js26 var arr1 = [1,1,1,1,1,1]; variable
27 arr1.fill(0, 2, 4);
28 print(arr1);

12