/third_party/node/test/parallel/ |
D | test-primordials-apply.js | 18 const arr1 = [1, 2, 3]; variable 19 const arr2 = ArrayOfApply(arr1); 21 assert.deepStrictEqual(arr2, arr1); 22 assert.notStrictEqual(arr2, arr1); 37 const arr1 = [1, 2, 3]; variable 40 const expected = [...arr1, ...arr2]; 42 assert.strictEqual(ArrayPrototypePushApply(arr1, arr2), expected.length); 43 assert.deepStrictEqual(arr1, expected); 47 const arr1 = [1, 2, 3]; variable 50 const expected = [...arr2, ...arr1]; [all …]
|
D | test-buffer-sharedarraybuffer.js | 7 const arr1 = new Uint16Array(sab); constant 10 arr1[0] = 5000; 11 arr1[1] = 4000; 14 const arr_buf = Buffer.from(arr1.buffer); 19 arr1[1] = 6000;
|
/third_party/jerryscript/tests/jerry/ |
D | array-prototype-concat.js | 24 var arr1 = ["Apple", 6, "Peach"]; variable 27 var new_array = obj.concat(arr1); 34 var new_array = arr1.concat(arr2, obj, 1); 46 var arr1 = [1,2]; variable 52 var result = arr1.concat(arr2, arr3, arr4); 59 var arr1 = []; variable 60 arr1.length = 2; 63 assert(arr1.concat(arr2).length === arr1.length + arr2.length); 80 arr1 = []; 86 arr1.concat(arr2, arr3);
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | array-spread.js | 61 var arr1 = [0, 1, 2]; variable 66 assertArrayEqual ([...arr1, ...arr2], [0, 1, 2, 3 ,4, 5]); 67 assertArrayEqual ([...arr2, ...arr1], [3 ,4, 5, 0, 1, 2]); 68 assertArrayEqual ([...arr1, 9, 9, 9, ...arr2], [0, 1, 2, 9, 9, 9, 3 ,4, 5]); 69 assertArrayEqual ([...arr1, ...[...arr2]], [0, 1, 2, 3 ,4, 5]); 70 assertArrayEqual (["0" , "1", ...arr1, ...[...arr2]], ["0", "1", 0, 1, 2, 3 ,4, 5]); 75 …yArray = [,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,...arr1];
|
/third_party/typescript/tests/baselines/reference/ |
D | arrayIndexWithArrayFails.types | 2 declare const arr1: (string | string[])[]; 3 >arr1 : (string | string[])[] 8 const j = arr2[arr1[0]]; // should error 10 >arr2[arr1[0]] : any 12 >arr1[0] : string | string[] 13 >arr1 : (string | string[])[]
|
D | unionOfClassCalls.js | 21 const arr1: number[] = []; variable 37 arr1.map((a: number, index: number) => { 41 arr1.reduce((acc: number[], a: number, index: number) => { 45 arr1.forEach((a: number, index: number) => { 88 var arr1 = []; variable 100 arr1.map(function (a, index) { 103 arr1.reduce(function (acc, a, index) { 106 arr1.forEach(function (a, index) {
|
D | arrayIndexWithArrayFails.symbols | 2 declare const arr1: (string | string[])[]; 3 >arr1 : Symbol(arr1, Decl(arrayIndexWithArrayFails.ts, 0, 13)) 8 const j = arr2[arr1[0]]; // should error 11 >arr1 : Symbol(arr1, Decl(arrayIndexWithArrayFails.ts, 0, 13))
|
D | unionOfClassCalls.symbols | 50 const arr1: number[] = []; 51 >arr1 : Symbol(arr1, Decl(unionOfClassCalls.ts, 19, 5)) 93 arr1.map((a: number, index: number) => { 94 >arr1.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) 95 >arr1 : Symbol(arr1, Decl(unionOfClassCalls.ts, 19, 5)) 105 arr1.reduce((acc: number[], a: number, index: number) => { 106 >arr1.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(li… 107 >arr1 : Symbol(arr1, Decl(unionOfClassCalls.ts, 19, 5)) 118 arr1.forEach((a: number, index: number) => { 119 >arr1.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) [all …]
|
D | unionOfClassCalls.types | 43 const arr1: number[] = []; 44 >arr1 : number[] 96 arr1.map((a: number, index: number) => { 97 >arr1.map((a: number, index: number) => { return index}) : number[] 98 >arr1.map : <U>(callbackfn: (value: number, index: number, array: number[]) => U, thisArg?: any) =>… 99 >arr1 : number[] 110 arr1.reduce((acc: number[], a: number, index: number) => { 111 >arr1.reduce((acc: number[], a: number, index: number) => { return [a]}, []) : number[] 112 >arr1.reduce : { (callbackfn: (previousValue: number, currentValue: number, currentIndex: number, a… 113 >arr1 : number[] [all …]
|
D | arrayIndexWithArrayFails.js | 2 declare const arr1: (string | string[])[]; 4 const j = arr2[arr1[0]]; // should error 7 var j = arr2[arr1[0]]; // should error
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/function_calls/overload_resolution/ |
D | overload_resolution_1.ts | 35 let arr1: Array<number> = [1, 2, 3]; variable 38 let a = fun<number, string>(arr1, arr2); 39 Assert.equal(a, arr1); 40 let b = fun<number, string, boolean>(arr1, arr2, arr3); 41 Assert.equal(b, arr1);
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/3.4/ |
D | readonly_tuples.ts | 26 let arr1: ReadonlyArray<number | string | boolean> = [10, 'b', false]; variable 29 Assert.isNumber(arr1[0]); 31 Assert.isString(arr1[1]); 33 Assert.isBoolean(arr1[2]);
|
D | a_new_syntax_for_readonly_array.ts | 25 let arr1: ReadonlyArray<string> = ["1", "2"]; variable 28 Assert.equal(arr1[1], "2");
|
/third_party/typescript/tests/cases/compiler/ |
D | unionOfClassCalls.ts | 21 const arr1: number[] = []; property in Test 37 arr1.map((a: number, index: number) => { 41 arr1.reduce((acc: number[], a: number, index: number) => { 45 arr1.forEach((a: number, index: number) => {
|
D | arrayIndexWithArrayFails.ts | 1 declare const arr1: (string | string[])[]; constant 3 const j = arr2[arr1[0]]; // should error constant
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/object_types/array_types/ |
D | array_types_1.ts | 26 let arr1: Array<string> = ["ABC", "DEF", "GHI"]; variable 30 Assert.equal(arr1[0], "ABC"); 35 arr1.forEach(function (element, index, arr) { 53 let arr6: ArrayString = arr1;
|
/third_party/node/deps/npm/node_modules/har-validator/node_modules/ajv/lib/dotjs/ |
D | allOf.js | 14 var arr1 = $schema; 15 if (arr1) { 17 l1 = arr1.length - 1; 19 $sch = arr1[$i += 1];
|
D | anyOf.js | 25 var arr1 = $schema; 26 if (arr1) { 28 l1 = arr1.length - 1; 30 $sch = arr1[$i += 1];
|
D | oneOf.js | 23 var arr1 = $schema; 24 if (arr1) { 26 l1 = arr1.length - 1; 28 $sch = arr1[$i += 1];
|
D | items.js | 63 var arr1 = $schema; 64 if (arr1) { 66 l1 = arr1.length - 1; 68 $sch = arr1[$i += 1];
|
/third_party/glslang/Test/ |
D | spv.specConstArrayCheck.vert | 8 uint arr1[a+a]; 10 o = arr1[1]; 12 o = arr1[6];
|
/third_party/typescript/src/server/ |
D | typingsCache.ts | 37 function setIsEqualTo(arr1: string[] | undefined, arr2: string[] | undefined): boolean { 38 if (arr1 === arr2) { 41 if ((arr1 || emptyArray).length === 0 && (arr2 || emptyArray).length === 0) { 47 for (const v of arr1!) {
|
/third_party/musl/Benchmark/musl/ |
D | libc_stdlib.cpp | 161 int *arr1 = new int[n]; in Bm_function_Qsort_random() local 163 InitRandomArray(arr1, n); in Bm_function_Qsort_random() 168 memcpy(arr2, arr1, n); in Bm_function_Qsort_random() 173 delete[] arr1; in Bm_function_Qsort_random()
|
/third_party/skia/third_party/externals/tint/test/vk-gl-cts/graphicsfuzz/cov-array-copies-loops-with-limiters/ |
D | 0-opt.spvasm | 12 OpName %arr1 "arr1" 82 %arr1 = OpVariable %_ptr_Function__arr_int_uint_10 Function 136 OpStore %arr1 %99 199 %147 = OpAccessChain %_ptr_Function_int %arr1 %146 227 %161 = OpAccessChain %_ptr_Function_int %arr1 %int_1 265 %185 = OpAccessChain %_ptr_Function_int %arr1 %181 374 %272 = OpAccessChain %_ptr_Function_int %arr1 %271
|
D | 0-opt.wgsl | 21 var arr1 : array<i32, 10>; 53 arr1 = array<i32, 10>(x_80, x_82, x_84, x_86, x_88, x_90, x_92, x_94, x_96, x_98); 94 let x_148 : i32 = arr1[x_146]; 112 let x_162 : i32 = arr1[1]; 133 arr1[x_181] = x_184; 202 let x_273 : i32 = arr1[x_271];
|