diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regexp-static.js')
-rw-r--r-- | deps/v8/test/mjsunit/regexp-static.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/regexp-static.js b/deps/v8/test/mjsunit/regexp-static.js index 8f283f6cee..0d6d85c660 100644 --- a/deps/v8/test/mjsunit/regexp-static.js +++ b/deps/v8/test/mjsunit/regexp-static.js @@ -119,7 +119,7 @@ for (var i = 4; i < 10; ++i) { // case the function uses the static properties of the regexp constructor. re = /(.)/g; function f() { return RegExp.$1; }; -assertEquals('abcd', 'abcd'.replace(re, f)); +assertEquals('dddd', 'abcd'.replace(re, f)); // lastParen where the last parenthesis didn't match. assertEquals(["foo",undefined], /foo(?:a(x))?/.exec("foobx"), @@ -144,8 +144,6 @@ for (var i = 1; i <= 9; i++) { assertEquals("", RegExp['$' + (i)], "$" + i); } -RegExp.multiline = "foo"; -assertTrue(typeof RegExp.multiline == typeof Boolean(), "RegExp.multiline coerces values to booleans"); RegExp.input = Number(); assertTrue(typeof RegExp.input == typeof String(), "RegExp.input coerces values to booleans"); |