mirror of https://github.com/nodejs/node.git
12 lines
282 B
JavaScript
12 lines
282 B
JavaScript
process.on('uncaughtException', function (err) {
|
|
console.log('Caught exception: ' + err);
|
|
});
|
|
|
|
setTimeout(function () {
|
|
console.log('This will still run.');
|
|
}, 500);
|
|
|
|
// Intentionally cause an exception, but don't catch it.
|
|
nonexistentFunc();
|
|
console.log('This will not run.');
|