Index: src/extensions/externalize-string-extension.cc |
diff --git a/src/extensions/externalize-string-extension.cc b/src/extensions/externalize-string-extension.cc |
index 614c243b3bd38bd3d44aebdb16e7542a767adb67..76d20303f848fb005a48de4eeec90e17f83e3f70 100644 |
--- a/src/extensions/externalize-string-extension.cc |
+++ b/src/extensions/externalize-string-extension.cc |
@@ -99,7 +99,7 @@ v8::Handle<v8::Value> ExternalizeStringExtension::Externalize( |
SimpleAsciiStringResource* resource = new SimpleAsciiStringResource( |
reinterpret_cast<char*>(data), string->length()); |
result = string->MakeExternal(resource); |
- if (result && !string->IsSymbol()) { |
+ if (result && !string->IsInternalizedString()) { |
HEAP->external_string_table()->AddString(*string); |
} |
if (!result) delete resource; |
@@ -109,7 +109,7 @@ v8::Handle<v8::Value> ExternalizeStringExtension::Externalize( |
SimpleTwoByteStringResource* resource = new SimpleTwoByteStringResource( |
data, string->length()); |
result = string->MakeExternal(resource); |
- if (result && !string->IsSymbol()) { |
+ if (result && !string->IsInternalizedString()) { |
HEAP->external_string_table()->AddString(*string); |
} |
if (!result) delete resource; |