From 0ac84d782f10e8447c0eac057396138d238e18e9 Mon Sep 17 00:00:00 2001 From: "jkummerow@chromium.org" Date: Thu, 10 Jan 2013 14:27:45 +0000 Subject: [PATCH] Add non-ASCII support to d8's read() function Review URL: https://codereview.chromium.org/11778099 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13354 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d8.cc b/src/d8.cc index eb7334a028..b0986284d9 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -1489,7 +1489,7 @@ Handle Shell::ReadFile(Isolate* isolate, const char* name) { int size = 0; char* chars = ReadChars(isolate, name, &size); if (chars == NULL) return Handle(); - Handle result = String::New(chars); + Handle result = String::New(chars, size); delete[] chars; return result; }