summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/expressions/destructuring-array-default-simple.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/non262/expressions/destructuring-array-default-simple.js')
-rw-r--r--js/src/tests/non262/expressions/destructuring-array-default-simple.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/non262/expressions/destructuring-array-default-simple.js b/js/src/tests/non262/expressions/destructuring-array-default-simple.js
new file mode 100644
index 0000000000..50c6c37f3d
--- /dev/null
+++ b/js/src/tests/non262/expressions/destructuring-array-default-simple.js
@@ -0,0 +1,16 @@
+var BUGNUMBER = 1184922;
+var summary = "Array destructuring with various default values in various context - simple literal";
+
+print(BUGNUMBER + ": " + summary);
+
+testDestructuringArrayDefault("'foo'");
+testDestructuringArrayDefault("`foo`");
+testDestructuringArrayDefault("func`foo`");
+
+testDestructuringArrayDefault("/foo/");
+
+testDestructuringArrayDefault("{}");
+testDestructuringArrayDefault("[]");
+
+if (typeof reportCompare === "function")
+ reportCompare(true, true);