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

assertEq(typeof TuplePrototype.slice, 'function');

assertThrowsInstanceOf(function() { TuplePrototype.slice() }, TypeError,
                       "value of TupleObject must be a Tuple");

reportCompare(0, 0);