summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/prototype/toSorted/invoked-as-func.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/tests/non262/Tuple/prototype/toSorted/invoked-as-func.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/tests/non262/Tuple/prototype/toSorted/invoked-as-func.js b/js/src/tests/non262/Tuple/prototype/toSorted/invoked-as-func.js
new file mode 100644
index 0000000000..da68b8b8fc
--- /dev/null
+++ b/js/src/tests/non262/Tuple/prototype/toSorted/invoked-as-func.js
@@ -0,0 +1,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);