summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/byteLength.js
blob: 69f56a9ecf637d29340e9ad5665d8ce85734ebb4 (plain)
1
2
3
4
5
6
7
8
9
// SharedArrayBuffer.prototype.byteLength

if (!this.SharedArrayBuffer)
    quit(0);

load(libdir + "asserts.js");

let buffer = new SharedArrayBuffer(137);
assertEq(buffer.byteLength, 137);