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

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

detachArrayBuffer(ta.buffer);

assertThrowsInstanceOf(() => ta.toReversed(), TypeError);

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