Bug 663748 - js shell doesn't sometimes output exceptions on Win64. r=luke

This commit is contained in:
Makoto Kato 2011-09-05 11:24:48 +09:00
parent 5164fb3ecf
commit 010d6b4185

View File

@ -4871,6 +4871,7 @@ my_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
if (!report) {
fprintf(gErrFile, "%s\n", message);
fflush(gErrFile);
return;
}
@ -4933,6 +4934,7 @@ my_ErrorReporter(JSContext *cx, const char *message, JSErrorReport *report)
}
fputs("^\n", gErrFile);
out:
fflush(gErrFile);
if (!JSREPORT_IS_WARNING(report->flags)) {
if (report->errorNumber == JSMSG_OUT_OF_MEMORY) {
gExitCode = EXITCODE_OUT_OF_MEMORY;