Index: test/mjsunit/regexp.js |
diff --git a/test/mjsunit/regexp.js b/test/mjsunit/regexp.js |
index 76fa44be9c064ca7a8283d28c9334e2b51a860e8..79bbec6dd7ada20259d103e72400973d037c4488 100644 |
--- a/test/mjsunit/regexp.js |
+++ b/test/mjsunit/regexp.js |
@@ -701,3 +701,7 @@ assertThrows("RegExp('(*)')"); |
assertThrows("RegExp('(?:*)')"); |
assertThrows("RegExp('(?=*)')"); |
assertThrows("RegExp('(?!*)')"); |
+ |
+// Test trimmed regular expression for RegExp.test(). |
+assertTrue(/.*abc/.test("abc")); |
+assertFalse(/.*\d+/.test("q")); |