Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5ce6a3cb53f4e620d549a3536ad9d7fb429ee6a8..bd2a7a2d149bc08f6214a7e50b70a3697efe92ee 100644 |
--- a/src/runtime.cc |
+++ b/src/runtime.cc |
@@ -3153,7 +3153,7 @@ MUST_USE_RESULT static MaybeObject* StringReplaceRegExpWithEmptyString( |
// Shortcut for simple non-regexp global replacements |
if (is_global && |
regexp->TypeTag() == JSRegExp::ATOM) { |
- Handle<String> empty_string(HEAP->empty_string()); |
+ Handle<String> empty_string = isolate->factory()->empty_string(); |
if (subject->HasOnlyAsciiChars()) { |
return StringReplaceAtomRegExpWithString<SeqOneByteString>( |
isolate, |