Make prettyprinter useful in gdb.

R=rossberg
BUG=

Review URL: https://codereview.chromium.org/1354433004

Cr-Commit-Position: refs/heads/master@{#30866}
This commit is contained in:
neis 2015-09-22 08:57:04 -07:00 committed by Commit bot
parent 5e08d818f0
commit 191a0cb6dd

View File

@ -907,7 +907,7 @@ const char* PrettyPrinter::PrintProgram(FunctionLiteral* program) {
void PrettyPrinter::PrintOut(Isolate* isolate, Zone* zone, AstNode* node) {
PrettyPrinter printer(isolate, zone);
PrintF("%s", printer.Print(node));
PrintF("%s\n", printer.Print(node));
}