Fix wrong test in r13766 (Insert conversion to string in string.replace).

R=ulan@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/12315130

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13770 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2013-02-27 15:36:02 +00:00
parent 5a543d683a
commit 5c264ade8e

View File

@ -225,7 +225,7 @@ var side_effect_flag = false;
var replace_obj_side_effects = {
toString: function() { side_effect_flag = true; return "x" }
}
assertEquals("abc", "abc".replace(/z/g, function() { return "x"; }));
assertEquals("abc", "abc".replace(/z/g, replace_obj_side_effects));
assertTrue(side_effect_flag); // Side effect triggers even without a match.
var regexp99pattern = "";