summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/sharedbuf/byteLength.js
blob: f2501c55e3610acda0784b6c643b484d42ce0014 (plain)
1
2
3
4
5
6
7
8
// |jit-test| skip-if: !this.SharedArrayBuffer

// SharedArrayBuffer.prototype.byteLength

load(libdir + "asserts.js");

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