Closed Bug 679893 Opened 13 years ago Closed 13 years ago

JS shell's -D option misses early scripts

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla9

People

(Reporter: sfink, Assigned: sfink)

Details

(Whiteboard: [inbound])

Attachments

(1 file)

djf pointed out over IRC that the -D option is now printing an initial (null):0 script with no counts.
The -D option was being handled in ProcessArgs, which happens after the global object is created. This patch does a check for that option right after the context is created.
Assignee: general → sphink
Status: NEW → ASSIGNED
Attachment #553922 - Flags: review?(cdleary)
Attachment #553922 - Flags: review?(cdleary) → review+
http://hg.mozilla.org/mozilla-central/rev/4e2365ec6145
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla9
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: