Home | History | Annotate | Download | only in harmony

Lines Matching refs:constr

85 function MakeSharedTypedArray(constr, numElements) {
86 var sab = new SharedArrayBuffer(constr.BYTES_PER_ELEMENT * numElements);
87 return new constr(sab);
90 function TestTypedArray(constr, elementSize, typicalElement) {
91 assertSame(elementSize, constr.BYTES_PER_ELEMENT);
95 var a0 = new constr(30);
96 assertEquals("[object " + constr.name + "]",
108 var aOverBufferLen0 = new constr(sab, 128*elementSize, 0);
115 var a1 = new constr(sab, 128*elementSize, 128);
123 var a2 = new constr(sab, 64*elementSize, 128);
130 var a3 = new constr(sab, 192*elementSize);
136 var a4 = new constr(sab);
172 var aAtTheEnd = new constr(sab, 256*elementSize);
178 assertThrows(function () { new constr(sab, 257*elementSize); }, RangeError);
180 function () { new constr(sab, 128*elementSize, 192); },
184 assertThrows(function() { new constr(sab, 128*elementSize - 1, 10); },
187 var goodArray = new constr(unalignedArrayBuffer, 0, 10);
190 assertThrows(function() { new constr(unalignedArrayBuffer)}, RangeError);
191 assertThrows(function() { new constr(unalignedArrayBuffer, 5*elementSize)},
196 var aOverAbLen0 = new constr(abLen0);
203 var a = new constr(sab, 64*elementSize, 128);
204 assertEquals("[object " + constr.name + "]",
207 constr.prototype.__proto__, Symbol.toStringTag);