summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/9.1.1.1.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/Tuple/9.1.1.1.js')
-rw-r--r--js/src/tests/non262/Tuple/9.1.1.1.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/src/tests/non262/Tuple/9.1.1.1.js b/js/src/tests/non262/Tuple/9.1.1.1.js
new file mode 100644
index 0000000000..0f1e8d8e0a
--- /dev/null
+++ b/js/src/tests/non262/Tuple/9.1.1.1.js
@@ -0,0 +1,12 @@
+// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
+
+assertEq(Object.prototype.toString.call(#[1,2,3]),
+ "[object Tuple]");
+assertEq(Object.prototype.toString.call(Object(#[1,2,3])),
+ "[object Tuple]");
+assertEq(Object.prototype.toString.call(#[]),
+ "[object Tuple]");
+assertEq(Object.prototype.toString.call(Object(#[])),
+ "[object Tuple]");
+
+reportCompare(0, 0);