Closed Bug 240309 Opened 21 years ago Closed 21 years ago

Remove \n from JavaScript [error:\n|warning:\n]

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bc, Assigned: jst)

References

()

Details

Attachments

(1 file)

The current reporting of JavaScript errors in DEBUG builds inserts a newline after the JavaScript [error|warning]:. This means that it is not possible to do a grep on a log file and extract the JavaScript error and warning messages. It would be very nice if we could remove the \n in line 264 and 266 in nsJSEnvironment.cpp and get this on 1.7's train.
Attachment #145942 - Flags: superreview?(bzbarsky)
Attachment #145942 - Flags: review?(bzbarsky)
Comment on attachment 145942 [details] [diff] [review] Remove extra '\n's and clean this code up a bit (debug only). r+sr=bzbarsky
Attachment #145942 - Flags: superreview?(bzbarsky)
Attachment #145942 - Flags: superreview+
Attachment #145942 - Flags: review?(bzbarsky)
Attachment #145942 - Flags: review+
Fix checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: