Skip to content

Commit

Permalink
don't mark exiting upon uncaught exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwang authored and GnorTech committed Nov 28, 2016
1 parent 38e8159 commit 1a03dd6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/internal/bootstrap_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,15 +311,6 @@
// If someone handled it, then great. otherwise, die in C++ land
// since that means that we'll exit the process, emit the 'exit' event
if (!caught) {
try {
if (!process._exiting) {
process._exiting = true;
process.emit('exit', 1);
}
} catch (er) {
// nothing to be done about it at this point.
}

// if we handled an error, then make sure any ticks get processed
} else {
NativeModule.require('timers').setImmediate(process._tickCallback);
Expand Down

0 comments on commit 1a03dd6

Please sign in to comment.