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