Index: test/mjsunit/regexp-capture.js |
diff --git a/test/mjsunit/regexp-capture.js b/test/mjsunit/regexp-capture.js |
index dc24491d9c2b6e5859a71d257dca6989445c38fb..8aae71795a505b82bf2f2fcd0accbc2d9bceb37f 100755 |
--- a/test/mjsunit/regexp-capture.js |
+++ b/test/mjsunit/regexp-capture.js |
@@ -39,19 +39,20 @@ assertEquals(0, "y".search(/(x)?\1y/)); |
assertEquals("z", "y".replace(/(x)?\1y/, "z")); |
assertEquals("", "y".replace(/(x)?y/, "$1")); |
assertEquals("undefined", "y".replace(/(x)?\1y/, |
- function($0, $1){ |
- return String($1); |
+ function($0, $1){ |
+ return String($1); |
})); |
-assertEquals("undefined", "y".replace(/(x)?y/, |
- function($0, $1){ |
- return String($1); |
+assertEquals("undefined", "y".replace(/(x)?y/, |
+ function($0, $1){ |
+ return String($1); |
})); |
-assertEquals("undefined", "y".replace(/(x)?y/, |
- function($0, $1){ |
- return $1; |
+assertEquals("undefined", "y".replace(/(x)?y/, |
+ function($0, $1){ |
+ return $1; |
})); |
// See https://bugzilla.mozilla.org/show_bug.cgi?id=476146 |
-assertEquals("bbc,b", /^(b+|a){1,2}?bc/.exec("bbc")); |
-assertEquals("bbaa,a,,a", /((\3|b)\2(a)){2,}/.exec("bbaababbabaaaaabbaaaabba")); |
+assertEquals(["bbc", "b"], /^(b+|a){1,2}?bc/.exec("bbc")); |
+assertEquals(["bbaa", "a", "", "a"], |
+ /((\3|b)\2(a)){2,}/.exec("bbaababbabaaaaabbaaaabba")); |