| /arkcompiler/ets_runtime/test/aottest/array_foreach_inline/ |
| D | array_foreach_inline.ts | 16 let array1:numeber[] = [4, 5, 6]; variable 18 array1.forEach((element) => { 22 array1.forEach((element) => { 23 array1[array1.length] = array1.length 27 array1.forEach((element) => { 28 delete array1[1]; 32 print(array1.length)
|
| /arkcompiler/ets_runtime/test/moduletest/typedarraynan/ |
| D | typedarraynan.js | 44 var array1 = new Int32Array(buffer); variable 45 array1[0] = -5; 46 array1[1] = -5; 51 print(array1[0]); 52 print(array1[1]); 56 print(array1[0]); 57 print(array1[1]);
|
| /arkcompiler/ets_runtime/test/moduletest/arrayReverseCase/ |
| D | arrayReverseCase.js | 16 const array1 = ['one', 'two', 'three']; variable 17 print('array1:', array1); 20 const reversed1 = array1.reverse(); 25 print('array1:', array1);
|
| D | expect_output.txt | 14 array1: one,two,three 16 array1: three,two,one
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfindindex/ |
| D | arrayfindindex.js | 32 var array1 = [,]; 35 return array1.findIndex(v => v > 0); 37 array1.__proto__.push(6);
|
| /arkcompiler/ets_runtime/test/moduletest/arraysplice/ |
| D | arraysplice.js | 38 var array1 = new Array(10); variable 39 var spliced1 = array1.splice(1, 1, "a", "b"); 40 for (let i = 0; i < array1.length; ++i) { 41 print(i in array1)
|
| /arkcompiler/ets_runtime/test/moduletest/elements_kind/ |
| D | elements_kind.js | 1363 const array1 = [1, 30, 39, 29, 10, 13]; 1365 if (array1.every(isBelowThreshold)) { 1374 const array1 = [1, 2, 3, 4]; 1376 array1.fill(0, 2, 4); 1378 if (array1.length == 4 && ArkTools.getElementsKind(array1) == PACKEDINT){ 1386 const array1 = [1, 2, 3, 4]; 1388 array1.fill(5.5, 1); 1390 if (array1.length == 4 && ArkTools.getElementsKind(array1) == PACKEDNUMBER){ 1398 const array1 = [1, 2, 3, 4]; 1399 array1.fill("6"); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/builtins_array/ |
| D | builtins_array.ts | 18 let array1 = new Array(); 21 print(array1.length);
|
| /arkcompiler/ets_runtime/test/moduletest/arraysortcase/ |
| D | arraysortcase.js | 20 const array1 = [1, 30, 4, 21, 100000]; variable 21 array1.sort(); 22 print(array1);
|
| /arkcompiler/ets_runtime/test/moduletest/arrayFilterCase/ |
| D | arrayFilterCase.js | 73 var array1=[,] variable 75 return array1.filter(v => v>0 ); 77 array1.__proto__.push(6);
|
| /arkcompiler/ets_runtime/test/moduletest/arrayforeach/ |
| D | arrayforeach.js | 25 let array1 = [1, 2, 3, 4, 5]; variable 26 array1.forEach((item, index) => {
|
| /arkcompiler/ets_runtime/ecmascript/ic/tests/ |
| D | ic_invoke_test.cpp | 70 JSHandle<TaggedArray> array1 = factory->NewTaggedArray(3); in HWTEST_F_L0() local 75 array1->Set(thread, 0, func0.GetTaggedValue()); in HWTEST_F_L0() 79 array1->Set(thread, 1, func1.GetTaggedValue()); in HWTEST_F_L0() 83 array1->Set(thread, 2, func2.GetTaggedValue()); in HWTEST_F_L0() 89 …thread, static_cast<ProfileTypeInfo *>(*array), slotId, 3, array1.GetTaggedValue(), array2.GetTagg… in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/test/moduletest/arrayValuesCase/ |
| D | arrayValuesCase.js | 24 const array1 = ['a', 'b', 'c']; variable 25 const iterator1 = array1.values();
|
| /arkcompiler/ets_runtime/test/moduletest/arrayConcat/ |
| D | arrayConcat.js | 15 const array1 = ['a', 'b', 'c']; variable 17 const array3 = array1.concat(array2);
|
| /arkcompiler/ets_runtime/test/moduletest/arrayFindIndexCase/ |
| D | findIndex.js | 23 const array1 = [5, 12, 8, 130, 44]; variable 25 print(array1.findIndex(isLargeNumber));
|
| /arkcompiler/ets_runtime/test/fuzztest/snapshotserializehugeobject_fuzzer/ |
| D | snapshotserializehugeobject_fuzzer.cpp | 38 JSHandle<TaggedArray> array1 = factory->NewTaggedArray(hugeSize + *data); in SnapshotSerializeHugeObjectFuzzTest() local 39 array->Set(vm->GetAssociatedJSThread(), 0, array1.GetTaggedValue()); in SnapshotSerializeHugeObjectFuzzTest()
|
| /arkcompiler/ets_runtime/test/fuzztest/snapshotserializerange_fuzzer/ |
| D | snapshotserializerange_fuzzer.cpp | 36 JSHandle<TaggedArray> array1 = factory->NewTaggedArray(*data); in SnapshotSerializeRangeFuzzTest() local 38 objVector.push_back(array1.GetTaggedType()); in SnapshotSerializeRangeFuzzTest()
|
| /arkcompiler/ets_runtime/test/moduletest/arrayfind/ |
| D | arrayfind.js | 17 const array1 = [5, 12, 8, 130, 44]; variable 18 const found = array1.find((element) => element > 10);
|
| /arkcompiler/ets_runtime/ecmascript/snapshot/tests/ |
| D | snapshot_test.cpp | 71 … JSHandle<TaggedArray> array1 = factory->NewTaggedArray(ARRAY_SIZE * KILO_BITS / sizeof(uint8_t)); in CompatibilityHelper() local 74 array1->Set(thread, 0, funcFunc.GetTaggedValue()); in CompatibilityHelper() 80 snapshotSerialize.Serialize(*array1, nullptr, fileName); in CompatibilityHelper() 280 JSHandle<TaggedArray> array1 = factory->NewTaggedArray(300 * 1024 / 8); in HWTEST_F_L0() local 287 array1->Set(thread, 0, array2.GetTaggedValue()); in HWTEST_F_L0() 288 array1->Set(thread, 1, funcFunc.GetTaggedValue()); in HWTEST_F_L0() 289 array1->Set(thread, 2, dateFunc.GetTaggedValue()); in HWTEST_F_L0() 290 array1->Set(thread, 3, numberFunc.GetTaggedValue()); in HWTEST_F_L0() 299 snapshotSerialize.Serialize(*array1, nullptr, fileName); in HWTEST_F_L0()
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| D | variable_second.js | 49 var array1 = []; 50 array1.push('banana', 'apple', 'peach'); 71 var array20 = array1;
|
| /arkcompiler/ets_runtime/test/moduletest/arrayreducecase/ |
| D | arrayreducecase.js | 16 const array1 = [1, 2, 3, 4]; variable 18 const sumWithInitial = array1.reduce(
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ts/ |
| D | memberExpTests.ts | 17 var array1: number[] = [1, 2, 3, 4]; variable 18 array1[3] = 5;
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | memberExpTests.ts | 17 var array1: number[] = [1, 2, 3, 4]; variable 18 array1[3] = 5;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/runtime/types/ |
| D | ets_class_test.cpp | 528 EtsArray *array1 = EtsObjectArray::Create(klass, 1000); in TEST_F() local 530 ASSERT_NE(array1, nullptr); in TEST_F() 533 EtsClass *klass1 = array1->GetClass(); in TEST_F() 541 EtsArray *array1 = EtsFloatArray::Create(1000); in TEST_F() local 543 ASSERT_NE(array1, nullptr); in TEST_F() 546 EtsClass *klass1 = array1->GetClass(); in TEST_F() 664 auto *array1 = EtsObjectArray::Create(klass, arrayLength); in TEST_F() local 667 ASSERT_NE(array1, nullptr); in TEST_F() 669 ASSERT_EQ(array1->GetClass()->GetComponentType(), array2->GetClass()->GetComponentType()); in TEST_F()
|
| /arkcompiler/runtime_core/disassembler/tests/sources/ |
| D | literals_same.pa | 15 .array array1 i32 3 { 2 3 4}
|