Changed printing of immediate result in d8's interactive shell.
BUG=v8:371 Review URL: http://codereview.chromium.org/7792055 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9109 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d434d3158c
commit
00c1153887
@ -176,8 +176,8 @@ bool Shell::ExecuteString(Handle<String> source,
|
||||
// If all went well and the result wasn't undefined then print
|
||||
// the returned value.
|
||||
v8::String::Utf8Value str(result);
|
||||
const char* cstr = ToCString(str);
|
||||
printf("%s\n", cstr);
|
||||
fwrite(*str, sizeof(**str), str.length(), stdout);
|
||||
printf("\n");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user