summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/from/not-a-constructor.js
blob: 9c1318c8b0a1d8ed6c30c5ffa15324ab02b7f892 (plain)
1
2
3
4
5
6
7
8
9
// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
assertEq(isConstructor(Tuple.from), false);

assertThrowsInstanceOf(() => {
  new Tuple.from([]);
}, TypeError, 'new Tuple.from([]) throws a TypeError exception');


reportCompare(0, 0);