Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index e61c387b8dc380bc57dfc3f0415c5219765dc75d..e7b1769aaf3a42764b6bd97004dfcbb6e75d558e 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -1140,7 +1140,7 @@ void Isolate::PrintCurrentStackTrace(FILE* out) { |
Execution::GetStackTraceLine(recv, fun, pos_obj, is_top_level); |
if (line->length() > 0) { |
line->PrintOn(out); |
- fprintf(out, "\n"); |
+ PrintF(out, "\n"); |
} |
} |
} |
@@ -1306,8 +1306,9 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) { |
FLAG_abort_on_uncaught_exception && |
(report_exception || can_be_caught_externally)) { |
fatal_exception_depth++; |
- fprintf(stderr, "%s\n\nFROM\n", |
- *MessageHandler::GetLocalizedMessage(this, message_obj)); |
+ PrintF(stderr, |
+ "%s\n\nFROM\n", |
+ *MessageHandler::GetLocalizedMessage(this, message_obj)); |
PrintCurrentStackTrace(stderr); |
OS::Abort(); |
} |