Fixing bug 63484. Making mozilla not spit out messages about javascript errors when reporting a javascript warning. r=pollmann.netscape.com, sr=brendan@mozilla.org

This commit is contained in:
jst%netscape.com 2001-02-02 08:10:53 +00:00
parent 96c8269892
commit 5530b85619

@ -180,7 +180,7 @@ NS_ScriptErrorReporter(JSContext *cx,
error.AppendWithConversion(": ");
error.Append(NS_REINTERPRET_CAST(const PRUnichar*, report->ucmessage));
error.AppendWithConversion("\n");
if (status != nsEventStatus_eIgnore)
if (status != nsEventStatus_eIgnore && !JSREPORT_IS_WARNING(report->flags))
error.AppendWithConversion("Error was suppressed by event handler\n");
char *errorStr = error.ToNewCString();