summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug-1133377.js
blob: 3883eb743580901675cafd73c186bf06bdb71218 (plain)
1
2
3
4
5
6
7
8
9
10
11
var buffer = new ArrayBuffer(100);

view = new DataView(buffer, undefined, undefined);
assertEq(view.buffer, buffer);
assertEq(view.byteOffset, 0);
assertEq(view.byteLength, 100);

view = new DataView(buffer, 20, undefined);
assertEq(view.buffer, buffer);
assertEq(view.byteOffset, 20);
assertEq(view.byteLength, 80);