Index: src/extensions/externalize-string-extension.cc |
diff --git a/src/extensions/externalize-string-extension.cc b/src/extensions/externalize-string-extension.cc |
index 76d20303f848fb005a48de4eeec90e17f83e3f70..0f6b639fa1ec9d8817e0bdf2c46987b3594dace9 100644 |
--- a/src/extensions/externalize-string-extension.cc |
+++ b/src/extensions/externalize-string-extension.cc |
@@ -63,10 +63,10 @@ const char* const ExternalizeStringExtension::kSource = |
v8::Handle<v8::FunctionTemplate> ExternalizeStringExtension::GetNativeFunction( |
v8::Handle<v8::String> str) { |
- if (strcmp(*v8::String::AsciiValue(str), "externalizeString") == 0) { |
+ if (strcmp(*v8::String::Utf8Value(str), "externalizeString") == 0) { |
return v8::FunctionTemplate::New(ExternalizeStringExtension::Externalize); |
} else { |
- ASSERT(strcmp(*v8::String::AsciiValue(str), "isAsciiString") == 0); |
+ ASSERT(strcmp(*v8::String::Utf8Value(str), "isAsciiString") == 0); |
return v8::FunctionTemplate::New(ExternalizeStringExtension::IsAscii); |
} |
} |