Closed
Bug 751425
Opened 13 years ago
Closed 13 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•13 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•13 years ago
|
Attachment #621684 -
Flags: review?(jimb) → review+
Updated•13 years ago
|
Whiteboard: [js:t]
Assignee | ||
Comment 2•13 years ago
|
||
Assignee: general → sphink
Target Milestone: --- → mozilla15
Comment 3•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•