blob: 26109f30f92b0a6c90f448d799be5ee9a6fcdf92 [file] [log] [blame]
description(
"Tests that byteOffset does the right thing for neutered views."
);
function foo(o) {
return o.byteOffset;
}
var array = new Int8Array(new ArrayBuffer(100));
noInline(foo);
while (!dfgCompiled({f:foo}))
foo(array);
window.postMessage(array, "*", [array.buffer]);
shouldBe("foo(array)", "0");