Bug 128794

Summary: jsc-cli handles uncaught Errors poorly
Product: WebKit Reporter: Mark Hahnenberg <mhahnenberg>
Component: JavaScriptCoreAssignee: Mark Hahnenberg <mhahnenberg>
Status: NEW ---    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 127432    

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.