summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/TypedArray/with-detached.js
blob: 90ca86047199d21c80e00df516e2e5cc28775f62 (plain)
1
2
3
4
5
6
7
8
9
10
// |reftest|

var ta = new Int32Array([3, 2, 1]);

detachArrayBuffer(ta.buffer);

assertThrowsInstanceOf(() => ta.with(0, 0), TypeError);

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