blob: 76711a0ee55a02fcee7e75b50e78e238ec38a4d1 (
plain)
1
2
3
4
5
6
7
8
9
10
|
// |reftest| shell-option(--enable-change-array-by-copy) skip-if(!Int32Array.prototype.with)
var ta = new Int32Array([3, 2, 1]);
detachArrayBuffer(ta.buffer);
assertThrowsInstanceOf(() => ta.with(0, 0), TypeError);
if (typeof reportCompare === "function")
reportCompare(0, 0);
|