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:
parent
5a543d683a
commit
5c264ade8e
@ -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 = "";
|
||||
|
Loading…
Reference in New Issue
Block a user