From 22f97d99beee4b310bcbce927e65075a1f692a8d Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Tue, 24 Jan 2012 12:10:28 +0000 Subject: [PATCH] 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 --- src/d8.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/d8.cc b/src/d8.cc index bb4abb0..35d1a59 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -1036,9 +1036,7 @@ Handle 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 string( - FACTORY->NewExternalStringFromAscii(resource)); - return Utils::ToLocal(string); + return String::NewExternal(resource); } -- 2.7.4