/arkcompiler/ets_runtime/test/moduletest/arrayprotochange/ |
H A D | arrayprotochange.js | 24 var arr2 = [0, , , 3, 4]; variable 25 arr2.__proto__ = arr; 26 print(arr2[1]); 27 print(arr2.at(1))
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/escompat_demo/out/ |
H A D | demo.js | 25 const arr2 = (0, foo1.BarFunction)(); 26 console.log('test: check instanceof Array: ' + (arr2 instanceof Array)); 27 console.log('test: ' + arr2.at(0).name); 28 console.log('test: ' + arr2.at(1).name); 29 console.log('test: ' + arr2.at(2).name);
|
/arkcompiler/ets_runtime/test/moduletest/arrayforeach/ |
H A D | arrayforeach.js | 69 arr2[1000] = 3; 73 var arr2 = new Array(10); 74 arr2[1] = 1; 75 arr2[2] = 2; 76 arr2.forEach(callbackfn2);
|
/arkcompiler/ets_runtime/test/moduletest/typedarraytosorted/ |
H A D | typedarraytosorted.js | 50 let arr2 = obj.toSorted(); 52 result.push(arr2.toString() == "3,3,5,6,7,8,10,30,100,100"); 53 arr2 = obj.toSorted((x, y) => { return x < y }); 54 result.push(arr2.toString() == "100,100,30,10,8,7,6,5,3,3"); 56 arr2 = obj.toSorted(true);
|
/arkcompiler/ets_runtime/test/moduletest/addelementinternal/ |
H A D | addelementinternal.js | 23 let arr2 = []; 24 arr2.__proto__ = 123; 27 arr2[i] = i + 1; 32 print(arr2[i]);
|
/arkcompiler/ets_runtime/test/moduletest/typearray/ |
H A D | typearray.js | 528 let arr2 = new ctor([5, 4, 3, 2, 1]); 529 if (arr1.length !== arr2.length) return false; 531 if (arr1[i] !== arr2[i]) return false; 550 let arr2 = new ctor([5n, 4n, 3n, 2n, 1n]); 551 if (arr1.length !== arr2.length) return false; 553 if (arr1[i] !== arr2[i]) return false; 563 let arr2 = new Uint32Array(3); 565 arr2[i] = i + 1; 569 let res2 = arr2.reduceRight(fun1, 1, 1); 573 let res4 = arr2 [all...] |
/arkcompiler/ets_runtime/test/moduletest/arrayjoin/ |
H A D | arrayjoin.js | 40 var arr2 = [1]; variable 42 arr2[10] = arr3; 43 arr3[10] = arr2; 44 print(arr2.toString()); 45 print(arr2.toString());
|
/arkcompiler/ets_runtime/test/moduletest/ictest/ |
H A D | ictest.js | 81 let arr2 = {} 85 Object.defineProperty(arr2,"a", { 91 arr2["b"] = "b" 94 arr2["a"] = 1; 96 print(arr2["a"])
|
/arkcompiler/ets_runtime/test/moduletest/arrayshift/ |
H A D | arrayshift.js | 26 var arr2 = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; variable 30 arr2.constructor = function () { 33 var result2 = arr2.shift();
|
/arkcompiler/ets_runtime/test/moduletest/arraytoreversed/ |
H A D | arraytoreversed.js | 29 const arr2 = new Array(1025); 31 arr2[i] = i; 32 const arr3 = arr2.toReversed();
|
/arkcompiler/ets_runtime/test/moduletest/arraytospliced/ |
H A D | arraytospliced.js | 29 const arr2 = new Array(1025); 31 arr2[i] = i; 32 const arr3 = arr2.toSpliced(0, 0);
|
/arkcompiler/ets_runtime/test/moduletest/arraywith/ |
H A D | arraywith.js | 29 const arr2 = new Array(1025); 31 arr2[i] = i; 32 const arr3 = arr2.with(0, 0);
|
/arkcompiler/ets_runtime/test/moduletest/arrayfindlast/ |
H A D | arrayfindlast.js | 47 var arr2 = new Array(1025); 48 result = arr2.findLast((element, index, array) => { 53 result = arr2.findLastIndex((element, index, array) => { 58 result = arr2.findLastIndex((element, index, array) => {
|
/arkcompiler/ets_runtime/test/moduletest/arrayfindlastindex/ |
H A D | arrayfindlastindex.js | 32 var arr2 = new Array(); 39 for (let i = 0; i < 10; i++) arr2[i] = i; 43 var result2 = arr2.findLastIndex(testFunction);
|
/arkcompiler/ets_runtime/test/moduletest/typedarraywith/ |
H A D | typedarraywith.js | 59 let arr2 = obj.with(-2, value1); 60 result.push(arr2[3] == value1); 62 arr2 = obj.with(10, value2);
|
/arkcompiler/ets_runtime/test/moduletest/arrayflatmap/ |
H A D | arrayflatmap.js | 28 var arr2 = new Array(); 35 for (let i = 0; i < 10; i++) arr2[i] = i; 39 var result2 = arr2.flatMap(testFunction);
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
H A D | js_array_test.cpp | 43 JSArray *arr2 = JSArray::ArrayCreate(thread, JSTaggedNumber(10)).GetObject<JSArray>(); in HWTEST_F_L0() local 44 EXPECT_TRUE(arr2 != nullptr); in HWTEST_F_L0() 45 JSHandle<JSTaggedValue> obj2(thread, arr2); in HWTEST_F_L0() 57 JSArray *arr2 = JSArray::Cast(JSArray::ArraySpeciesCreate(thread, obj, JSTaggedNumber(10)).GetTaggedObject()); in HWTEST_F_L0() local 58 EXPECT_TRUE(arr2 != nullptr); in HWTEST_F_L0() 59 JSHandle<JSTaggedValue> obj2(thread, arr2); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/arraysort/ |
H A D | arraysort.js | 88 let arr2 = [1, 3, 2]; 89 arr2.sort((a, b) => { 91 arr2[0] == 2; 95 print(JSON.stringify(arr2));
|
/arkcompiler/ets_runtime/test/moduletest/proxy/ |
H A D | proxy.js | 59 const arr2 = [1, 2, 3]; 61 const proxy = new Proxy(arr2, handler);
|
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/ |
H A D | spreadoperator.js | 27 var arr2 = [1, 2, 4, 6, 7, 8, 9, 54];
variable 28 var arr3 = [...arr2];
|
/arkcompiler/ets_runtime/test/moduletest/container/ |
H A D | container_plainarray.js | 108 let arr2 = new PlainArray(); 109 let proxy1 = new Proxy(arr2, {});
|
H A D | container_arraylist.js | 174 let arr2 = new arrayList(); 175 let proxy1 = new Proxy(arr2, {});
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/js_files/ |
H A D | heapdump.js | 53 let arr2 = new Int16Array();
|
/arkcompiler/ets_runtime/test/moduletest/array/ |
H A D | array.js | 30 var arr2 = new Array(100); 31 arr2.fill(0, 2, 4); 32 var a1 = arr2.slice(0, 5); 33 print(arr2.length); 318 const arr2 = new Proxy([10, 20, 30, 40, 50, 60], arrProxyHandler); 319 const result2 = arr2.indexOf(30, { 321 arr2.length = 2; // Side effects to arr2 920 const arr2 = new Array(-1); 985 const arr2 [all...] |
/arkcompiler/ets_runtime/test/moduletest/arrayfrom/ |
H A D | arrayfrom.js | 87 let arr2 = MyArray2.from([1,2,3,4]); 88 print(JSON.stringify(arr2));
|