Commit 6bcf1628 authored by ricow@chromium.org's avatar ricow@chromium.org

Fix wrong assert from 9180

There is an optional parameter to the function, with default value being a null handle. We then check that this is a flat string.
Review URL: http://codereview.chromium.org/7850011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9184 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 2f32fab4
......@@ -2881,7 +2881,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceStringWithString(
Handle<JSRegExp> pattern_regexp,
Handle<String> replacement = Handle<String>::null()) {
ASSERT(subject->IsFlat());
ASSERT(replacement->IsFlat());
ASSERT(replacement.is_null() || replacement->IsFlat());
ZoneScope zone_space(isolate, DELETE_ON_EXIT);
ZoneList<int> indices(8);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment