diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-06-29 17:26:51 +0200 |
commit | 33af2720f26c2b25bc7f75ce7eb454ff99db6d35 (patch) | |
tree | 9a38f0c96420edf503eebd6325dd8d2d8249f653 /deps/v8/test/mjsunit/regexp-capture.js | |
parent | 6afdca885adeeeed9eef8cbb01c3d97af0bc084d (diff) | |
download | node-new-33af2720f26c2b25bc7f75ce7eb454ff99db6d35.tar.gz |
Upgrade V8 to 3.4.8
Diffstat (limited to 'deps/v8/test/mjsunit/regexp-capture.js')
-rwxr-xr-x | deps/v8/test/mjsunit/regexp-capture.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/deps/v8/test/mjsunit/regexp-capture.js b/deps/v8/test/mjsunit/regexp-capture.js index dc24491d9c..8aae71795a 100755 --- a/deps/v8/test/mjsunit/regexp-capture.js +++ b/deps/v8/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")); |