diff options
Diffstat (limited to '')
-rw-r--r-- | js/src/tests/non262/Tuple/prototype/map/invoked-as-method.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/tests/non262/Tuple/prototype/map/invoked-as-method.js b/js/src/tests/non262/Tuple/prototype/map/invoked-as-method.js new file mode 100644 index 0000000000..bf838117b8 --- /dev/null +++ b/js/src/tests/non262/Tuple/prototype/map/invoked-as-method.js @@ -0,0 +1,10 @@ +// |reftest| skip-if(!this.hasOwnProperty("Tuple")) +var TuplePrototype = Tuple.prototype; + +assertEq(typeof TuplePrototype.map, 'function'); + +assertThrowsInstanceOf(function() { + TuplePrototype.map(); +}, TypeError, "Tuple.prototype.map() with no argument"); + +reportCompare(0, 0); |