Index: src/runtime.cc |
diff --git a/src/runtime.cc b/src/runtime.cc |
index 5ce6a3cb53f4e620d549a3536ad9d7fb429ee6a8..da70ea51e9cb3fe20feac8dc61150e0256c9c7e3 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->heap()->empty_string()); |
Michael Starzinger
2012/11/15 21:24:25
Just use "Handle<String> empty_string = isolate->f
Sven Panne
2012/11/16 08:24:37
Done.
|
if (subject->HasOnlyAsciiChars()) { |
return StringReplaceAtomRegExpWithString<SeqOneByteString>( |
isolate, |