Index: src/extensions/externalize-string-extension.cc |
diff --git a/src/extensions/externalize-string-extension.cc b/src/extensions/externalize-string-extension.cc |
index a3630fb9f5b5253c6483c768589820e55502094c..5fd821b9c07385b53714b200f48a90a2126da75f 100644 |
--- a/src/extensions/externalize-string-extension.cc |
+++ b/src/extensions/externalize-string-extension.cc |
@@ -103,7 +103,8 @@ void ExternalizeStringExtension::Externalize( |
reinterpret_cast<char*>(data), string->length()); |
result = string->MakeExternal(resource); |
if (result && !string->IsInternalizedString()) { |
- HEAP->external_string_table()->AddString(*string); |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); |
+ isolate->heap()->external_string_table()->AddString(*string); |
} |
if (!result) delete resource; |
} else { |
@@ -113,7 +114,8 @@ void ExternalizeStringExtension::Externalize( |
data, string->length()); |
result = string->MakeExternal(resource); |
if (result && !string->IsInternalizedString()) { |
- HEAP->external_string_table()->AddString(*string); |
+ i::Isolate* isolate = reinterpret_cast<i::Isolate*>(args.GetIsolate()); |
+ isolate->heap()->external_string_table()->AddString(*string); |
} |
if (!result) delete resource; |
} |