Fix shared library build.

Review URL: https://chromiumcodereview.appspot.com/9117028

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10487 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2012-01-24 12:10:28 +00:00
parent 4aa558f22d
commit 22f97d99be

View File

@ -1036,9 +1036,7 @@ Handle<Value> Shell::ReadBinary(const Arguments& args) {
// We skip checking the string for UTF8 characters and use it raw as
// backing store for the external string with 8-bit characters.
BinaryResource* resource = new BinaryResource(chars, size);
i::Handle<i::String> string(
FACTORY->NewExternalStringFromAscii(resource));
return Utils::ToLocal(string);
return String::NewExternal(resource);
}