Chromium Code Reviews| Index: src/runtime.cc |
| =================================================================== |
| --- src/runtime.cc (revision 9183) |
| +++ src/runtime.cc (working copy) |
| @@ -2881,7 +2881,7 @@ |
| 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); |