summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/Tuple/from/source-object-without.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/Tuple/from/source-object-without.js')
-rw-r--r--js/src/tests/non262/Tuple/from/source-object-without.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/tests/non262/Tuple/from/source-object-without.js b/js/src/tests/non262/Tuple/from/source-object-without.js
new file mode 100644
index 0000000000..b2d625c5ae
--- /dev/null
+++ b/js/src/tests/non262/Tuple/from/source-object-without.js
@@ -0,0 +1,13 @@
+// |reftest| skip-if(!this.hasOwnProperty("Tuple"))
+
+var obj = {
+ 0: 2,
+ 1: 4,
+ 2: 8,
+ 3: 16
+}
+
+var t = Tuple.from(obj);
+assertEq(t.length, 0);
+
+reportCompare(0, 0);