Fix objectprint=on build.
R=dcarney@chromium.org BUG= Review URL: https://chromiumcodereview.appspot.com/11827023 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13348 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
c111d8f4b0
commit
64b74e6910
@ -703,7 +703,7 @@ char* String::ToAsciiArray() {
|
||||
static char* buffer = NULL;
|
||||
if (buffer != NULL) free(buffer);
|
||||
buffer = new char[length()+1];
|
||||
WriteToFlat(this, buffer, 0, length());
|
||||
WriteToFlat(this, reinterpret_cast<uint8_t*>(buffer), 0, length());
|
||||
buffer[length()] = 0;
|
||||
return buffer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user