Revert "don't swallow uncaught exceptions (#257)"

This reverts commit f205e2bde105c3b7a5244ec0ac1733cee111dbca.
This commit is contained in:
Jeff Williams 2012-11-10 11:27:08 -08:00
parent f205e2bde1
commit 13274551c5

View File

@ -426,12 +426,12 @@ function main() {
try { main(); }
catch(e) {
if (e.rhinoException != null) {
// TODO: print to stderr
e.rhinoException.printStackTrace();
e.rhinoException.printStackTrace();
} else {
throw e;
}
}
finally {
env.run.finish = new Date();
process.exit(0);
}