Bug 128794 - jsc-cli handles uncaught Errors poorly
Summary: jsc-cli handles uncaught Errors poorly
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Mark Hahnenberg
URL:
Keywords:
Depends on:
Blocks: 127432
  Show dependency treegraph
 
Reported: 2014-02-13 19:44 PST by Mark Hahnenberg
Modified: 2014-02-14 09:39 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Hahnenberg 2014-02-13 19:44:20 PST
(1) Require a module (e.g. require('assert'))
(2) Call a function that that module exports.
(3) If the function throws an uncaught Error, we swallow it and do nothing.

We should instead catch the Error at the top level, print some info about where it came from, and exit with error code.