Bug 297027 NS_ScriptErrorReporter(JSContext *cx, const char *message, JSErrorReport *report) doesn't report message to stdout
r=jst sr=jst a=chofmann git-svn-id: svn://10.0.0.236/trunk@174406 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -290,8 +290,12 @@ NS_ScriptErrorReporter(JSContext *cx,
|
||||
error.Append(", line ");
|
||||
error.AppendInt(report->lineno, 10);
|
||||
error.Append(": ");
|
||||
AppendUTF16toUTF8(NS_REINTERPRET_CAST(const PRUnichar*, report->ucmessage),
|
||||
error);
|
||||
if (report->ucmessage) {
|
||||
AppendUTF16toUTF8(NS_REINTERPRET_CAST(const PRUnichar*, report->ucmessage),
|
||||
error);
|
||||
} else {
|
||||
error.Append(message);
|
||||
}
|
||||
if (status != nsEventStatus_eIgnore && !JSREPORT_IS_WARNING(report->flags))
|
||||
error.Append(" Error was suppressed by event handler\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user