summaryrefslogtreecommitdiffstats
path: root/js/src/tests/ecma_5/RegExp/15.10.5-01.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/ecma_5/RegExp/15.10.5-01.js')
-rw-r--r--js/src/tests/ecma_5/RegExp/15.10.5-01.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/js/src/tests/ecma_5/RegExp/15.10.5-01.js b/js/src/tests/ecma_5/RegExp/15.10.5-01.js
new file mode 100644
index 000000000..2f8429218
--- /dev/null
+++ b/js/src/tests/ecma_5/RegExp/15.10.5-01.js
@@ -0,0 +1,21 @@
+/*
+ * Any copyright is dedicated to the Public Domain.
+ * http://creativecommons.org/licenses/publicdomain/
+ */
+
+var BUGNUMBER = 614603;
+var summary = "RegExp.length";
+
+print(BUGNUMBER + ": " + summary);
+
+/**************
+ * BEGIN TEST *
+ **************/
+
+assertEq(RegExp.length, 2);
+assertEq(/a/.constructor.length, 2);
+
+if (typeof reportCompare === "function")
+ reportCompare(true, true);
+
+print("All tests passed!");