summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/prototype/toSorted/invoked-as-func.js
blob: da68b8b8fc168e708b8787734a9de2bd9c3e1d07 (plain)
1
2
3
4
5
6
7
8
9
10
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
var toSorted = Tuple.prototype.toSorted;

assertEq(typeof toSorted, 'function');

assertThrowsInstanceOf(function() {
  toSorted();
}, TypeError, "toSorted invoked as function");

reportCompare(0, 0);