Review URL: http://codereview.chromium.org/93014

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1766 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yurys@chromium.org 2009-04-22 13:04:19 +00:00
parent bfb33b1e2f
commit 344d68a938

View File

@ -2213,8 +2213,9 @@ Message Message::NewOutput(v8::Handle<v8::String> output,
v8::Debug::ClientData* data) {
Vector<uint16_t> text;
if (!output.IsEmpty()) {
text = Vector<uint16_t>::New(output->Length() + 1);
output->Write(text.start());
// Do not include trailing '\0'.
text = Vector<uint16_t>::New(output->Length());
output->Write(text.start(), 0, output->Length());
}
return Message(text, data, false);
}