Closed
Bug 751425
Opened 12 years ago
Closed 12 years ago
shell exit code for runtime error differs between -e and -f
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: jruderman, Assigned: sfink)
Details
(Whiteboard: [js:t])
Attachments
(1 file)
1.06 KB,
patch
|
jimb
:
review+
|
Details | Diff | Splinter Review |
> ./js -e "z()" 1 http://hg.mozilla.org/mozilla-central/annotate/8899c0604bd1/js/src/shell/js.cpp#l4689 > ./js -f ~/Desktop/z.js 3 http://hg.mozilla.org/mozilla-central/annotate/8899c0604bd1/js/src/shell/js.cpp#l480
Assignee | ||
Comment 1•12 years ago
|
||
I think EXIT_FAILURE is intended to only be used for the shell machinery (argument parsing, etc.); any actual JS error should be EXITCODE_RUNTIME_ERROR (or one of the more specific ones.)
Attachment #621684 -
Flags: review?(jimb)
Updated•12 years ago
|
Attachment #621684 -
Flags: review?(jimb) → review+
Updated•12 years ago
|
Whiteboard: [js:t]
Assignee | ||
Comment 2•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/3656a0a559b2
Assignee: general → sphink
Target Milestone: --- → mozilla15
Comment 3•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3656a0a559b2
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•