Revision: 13354
Author:   [email protected]
Date:     Thu Jan 10 06:27:45 2013
Log:      Add non-ASCII support to d8's read() function

Review URL: https://codereview.chromium.org/11778099
http://code.google.com/p/v8/source/detail?r=13354

Modified:
 /branches/bleeding_edge/src/d8.cc

=======================================
--- /branches/bleeding_edge/src/d8.cc   Thu Jan 10 03:45:29 2013
+++ /branches/bleeding_edge/src/d8.cc   Thu Jan 10 06:27:45 2013
@@ -1489,7 +1489,7 @@
   int size = 0;
   char* chars = ReadChars(isolate, name, &size);
   if (chars == NULL) return Handle<String>();
-  Handle<String> result = String::New(chars);
+  Handle<String> result = String::New(chars, size);
   delete[] chars;
   return result;
 }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to