Last Comment Bug 679893 - JS shell's -D option misses early scripts
: JS shell's -D option misses early scripts
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: unspecified
: x86_64 Linux
-- normal (vote)
: mozilla9
Assigned To: Steve Fink [:sfink] [:s:]
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2011-08-17 14:57 PDT by Steve Fink [:sfink] [:s:]
Modified: 2011-08-18 03:56 PDT (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Handle -D earlier (1.63 KB, patch)
2011-08-17 15:06 PDT, Steve Fink [:sfink] [:s:]
cdleary: review+
Details | Diff | Splinter Review

Description User image Steve Fink [:sfink] [:s:] 2011-08-17 14:57:16 PDT
djf pointed out over IRC that the -D option is now printing an initial (null):0 script with no counts.
Comment 1 User image Steve Fink [:sfink] [:s:] 2011-08-17 15:06:15 PDT
Created attachment 553922 [details] [diff] [review]
Handle -D earlier

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.
Comment 2 User image Steve Fink [:sfink] [:s:] 2011-08-17 15:25:03 PDT
Comment 3 User image Marco Bonardo [::mak] 2011-08-18 03:56:56 PDT

Note You need to log in before you can comment on or make changes to this bug.