blob: 76ea8bc28c237c79a409a16395d441e7dcaa328d [file] [log] [blame] [edit]
function test(v) {
return v.byteLength;
}
noInline(test);
const b = new ArrayBuffer(16);
const v = new DataView(b);
globalThis.testLoopCount ??= 10000;
for (let i = 0; i < testLoopCount; i++) {
if (test(v) != 16)
throw new Error("bad");
}