/third_party/jerryscript/tests/jerry/ |
D | array-prototype-concat.js | 25 var arr2 = [obj, "Cherry", "Grape"]; variable 34 var new_array = arr1.concat(arr2, obj, 1); 47 var arr2 = [4,5,6,7,8]; variable 52 var result = arr1.concat(arr2, arr3, arr4); 61 var arr2 = []; variable 62 arr2.length = 3; 63 assert(arr1.concat(arr2).length === arr1.length + arr2.length); 81 arr2 = []; 83 Object.defineProperty(arr2, '0', { 'get' : function () {throw new ReferenceError ("foo"); } }); 86 arr1.concat(arr2, arr3);
|
/third_party/typescript/tests/baselines/reference/ |
D | forIn.symbols | 35 var arr2 = []; 36 >arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3)) 38 for (j in arr2) { // ok 40 >arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3)) 42 var x3 = arr2[j]; 44 >arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3)) 47 var y3 = arr2[j]; 49 >arr2 : Symbol(arr2, Decl(forIn.ts, 11, 3))
|
D | forIn.types | 40 var arr2 = []; 41 >arr2 : any[] 44 for (j in arr2) { // ok 46 >arr2 : any[] 48 var x3 = arr2[j]; 50 >arr2[j] : any 51 >arr2 : any[] 54 var y3 = arr2[j]; 56 >arr2[j] : any 57 >arr2 : any[]
|
D | forIn.js | 13 var arr2 = []; variable 14 for (j in arr2) { // ok 15 var x3 = arr2[j]; 16 var y3 = arr2[j]; 34 var arr2 = []; variable 35 for (j in arr2) { // ok 36 var x3 = arr2[j]; 37 var y3 = arr2[j];
|
D | unionOfClassCalls.js | 22 const arr2: string[] = []; variable 48 arr2.map((a: string, index: number) => { 52 arr2.reduce((acc: string[], a: string, index: number) => { 56 arr2.forEach((a: string, index: number) => { 89 var arr2 = []; variable 109 arr2.map(function (a, index) { 112 arr2.reduce(function (acc, a, index) { 115 arr2.forEach(function (a, index) {
|
D | arrayIndexWithArrayFails.symbols | 5 declare const arr2: number[]; 6 >arr2 : Symbol(arr2, Decl(arrayIndexWithArrayFails.ts, 1, 13)) 8 const j = arr2[arr1[0]]; // should error 10 >arr2 : Symbol(arr2, Decl(arrayIndexWithArrayFails.ts, 1, 13))
|
D | arrayIndexWithArrayFails.types | 5 declare const arr2: number[]; 6 >arr2 : number[] 8 const j = arr2[arr1[0]]; // should error 10 >arr2[arr1[0]] : any 11 >arr2 : number[]
|
D | unionOfClassCalls.symbols | 53 const arr2: string[] = []; 54 >arr2 : Symbol(arr2, Decl(unionOfClassCalls.ts, 20, 5)) 129 arr2.map((a: string, index: number) => { 130 >arr2.map : Symbol(Array.map, Decl(lib.es5.d.ts, --, --)) 131 >arr2 : Symbol(arr2, Decl(unionOfClassCalls.ts, 20, 5)) 141 arr2.reduce((acc: string[], a: string, index: number) => { 142 >arr2.reduce : Symbol(Array.reduce, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(li… 143 >arr2 : Symbol(arr2, Decl(unionOfClassCalls.ts, 20, 5)) 152 arr2.forEach((a: string, index: number) => { 153 >arr2.forEach : Symbol(Array.forEach, Decl(lib.es5.d.ts, --, --)) [all …]
|
D | unionOfClassCalls.types | 47 const arr2: string[] = []; 48 >arr2 : string[] 140 arr2.map((a: string, index: number) => { 141 >arr2.map((a: string, index: number) => { return index}) : number[] 142 >arr2.map : <U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any) =>… 143 >arr2 : string[] 154 arr2.reduce((acc: string[], a: string, index: number) => { 155 >arr2.reduce((acc: string[], a: string, index: number) => { return []}, []) : never[] 156 >arr2.reduce : { (callbackfn: (previousValue: string, currentValue: string, currentIndex: number, a… 157 >arr2 : string[] [all …]
|
D | forIn.errors.txt | 19 var arr2 = []; 20 for (j in arr2) { // ok 21 var x3 = arr2[j]; 22 var y3 = arr2[j];
|
D | arrayIndexWithArrayFails.js | 3 declare const arr2: number[]; 4 const j = arr2[arr1[0]]; // should error 7 var j = arr2[arr1[0]]; // should error
|
D | forStatementsMultipleInvalidDecl.js | 50 for(var arr2 = [new D<string>()];;){} 51 for( var arr2 = new Array<D<number>>();;){} 116 for (var arr2 = [new D()];;) { } 117 for (var arr2 = new Array();;) { }
|
D | invalidMultipleVariableDeclarations.js | 50 var arr2 = [new D<string>()]; variable 51 var arr2 = new Array<D<number>>(); 116 var arr2 = [new D()]; variable 117 var arr2 = new Array(); variable
|
/third_party/node/test/parallel/ |
D | test-primordials-apply.js | 19 const arr2 = ArrayOfApply(arr1); constant 21 assert.deepStrictEqual(arr2, arr1); 22 assert.notStrictEqual(arr2, arr1); 38 const arr2 = [4, 5, 6]; variable 40 const expected = [...arr1, ...arr2]; 42 assert.strictEqual(ArrayPrototypePushApply(arr1, arr2), expected.length); 48 const arr2 = [4, 5, 6]; variable 50 const expected = [...arr2, ...arr1]; 52 assert.strictEqual(ArrayPrototypeUnshiftApply(arr1, arr2), expected.length);
|
D | test-buffer-sharedarraybuffer.js | 8 const arr2 = new Uint16Array(12); constant 9 arr2[0] = 5000; 12 arr2[1] = 4000; 15 const ar_buf = Buffer.from(arr2.buffer); 20 arr2[1] = 6000;
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
D | dePoolArray.cpp | 90 PoolArray<int> arr2(&pool); in intArrayTest() local 91 arr2.resize(1500); in intArrayTest() 92 arr2.reserve(2000); in intArrayTest() 94 arr2[i] = i; in intArrayTest() 96 arr2.pushBack(i); in intArrayTest() 98 DE_TEST_ASSERT(arr2.size() == 5000); in intArrayTest() 101 int val = arr2[i]; in intArrayTest() 170 PoolArray<int, 32> arr2(&pool); in alignedIntArrayTest() local 171 arr2.resize(1500); in alignedIntArrayTest() 172 arr2.reserve(2000); in alignedIntArrayTest() [all …]
|
/third_party/jerryscript/tests/jerry/es2015/ |
D | array-spread.js | 62 var arr2 = [3, 4, 5]; 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]);
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/types/object_types/array_types/ |
D | array_types_1.ts | 27 let arr2: Array<number> = [1, 3, 5, 7, 9]; variable 31 Assert.equal(arr2[0], 1); 38 Assert.equal(arr2.toString(), "1,3,5,7,9"); 40 Assert.equal(arr2.pop(), 9); 41 Assert.equal(arr2.toString(), "1,3,5,7"); 47 let arr5: ArrayNumber = arr2;
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/3.4/ |
D | readonly_tuples.ts | 27 let arr2: readonly [number, string, boolean] = [5, 'a', true]; variable 30 Assert.isNumber(arr2[0]); 32 Assert.isString(arr2[1]); 34 Assert.isBoolean(arr2[2]);
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/2.3/generators_and_iteration_for_ES5,ES3/generators/ |
D | generators_2.ts | 27 let arr2 = ["A", "B", "C", "D", "E", "F"]; variable 29 yield* arr2; 30 let s = arr2[arr2.length - 1].charCodeAt(0);
|
/third_party/typescript/tests/cases/compiler/ |
D | forIn.ts | 12 var arr2 = []; variable 13 for (j in arr2) { // ok 14 var x3 = arr2[j]; 15 var y3 = arr2[j];
|
D | unionOfClassCalls.ts | 22 const arr2: string[] = []; property in Test 48 arr2.map((a: string, index: number) => { 52 arr2.reduce((acc: string[], a: string, index: number) => { 56 arr2.forEach((a: string, index: number) => {
|
/third_party/glslang/Test/ |
D | spv.specConstArrayCheck.vert | 9 uint arr2[b]; 11 o = arr2[1]; 13 o = arr2[6];
|
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/expressions/function_calls/overload_resolution/ |
D | overload_resolution_1.ts | 36 let arr2: Array<string> = ['a', 'b']; variable 38 let a = fun<number, string>(arr1, arr2); 40 let b = fun<number, string, boolean>(arr1, arr2, arr3);
|
/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) { 53 for (const v of arr2!) {
|