// |reftest| skip-if(!xulRuntime.shell) -- needs detachArrayBuffer

for (var constructor of typedArrayConstructors) {
    var buf = new constructor();
    detachArrayBuffer(buf.buffer);
    assertThrowsInstanceOf(() => new constructor(buf), TypeError);

    var buffer = new ArrayBuffer();
    detachArrayBuffer(buffer);
    assertThrowsInstanceOf(() => new constructor(buffer), TypeError);
}


if (typeof reportCompare === "function")
    reportCompare(true, true);
