Lines Matching refs:sab
34 var sab = new SharedArrayBuffer(param);
35 assertSame(expectedByteLength, sab.byteLength);
56 var sab = new SharedArrayBuffer();
57 assertSame(0, sab.byteLength);
59 Object.prototype.toString.call(sab));
65 var sab = new SharedArrayBuffer(1024);
66 assertSame(1024, sab.byteLength);
68 assertThrows(function() { "use strict"; sab.byteLength = 42; }, TypeError);
74 var sab = new SharedArrayBuffer(10);
75 assertEquals(undefined, sab.slice);
86 var sab = new SharedArrayBuffer(constr.BYTES_PER_ELEMENT * numElements);
87 return new constr(sab);
93 var sab = new SharedArrayBuffer(256*elementSize);
108 var aOverBufferLen0 = new constr(sab, 128*elementSize, 0);
109 assertSame(sab, aOverBufferLen0.buffer);
115 var a1 = new constr(sab, 128*elementSize, 128);
116 assertSame(sab, a1.buffer);
123 var a2 = new constr(sab, 64*elementSize, 128);
124 assertSame(sab, a2.buffer);
130 var a3 = new constr(sab, 192*elementSize);
131 assertSame(sab, a3.buffer);
136 var a4 = new constr(sab);
137 assertSame(sab, a4.buffer);
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); },
203 var a = new constr(sab, 64*elementSize, 128);