Source code
Revision control
Copy as Markdown
Other Tools
// |jit-test| --enable-arraybuffer-resizable
let ab = new ArrayBuffer(8, {maxByteLength: 10});
pinArrayBufferOrViewLength(ab);
let ta = new Int8Array(ab);
assertEq(ta.length, 8);