summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/TypedArray/sort_globals.js
blob: 6bab6a3913b9bd1bfeba661b31e24e9f7f786559 (plain)
1
2
3
4
5
6
7
8
9
// TypedArray.prototype.sort should work across globals
let g2 = newGlobal();
assertEqArray(
    Int32Array.prototype.sort.call(new g2.Int32Array([3, 2, 1])),
    new Int32Array([1, 2, 3])
);

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