Browse Source

Add failing uncaughtException test

FIXME
v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
635986e433
  1. 11
      test/simple/test-exception-handler2.js

11
test/simple/test-exception-handler2.js

@ -0,0 +1,11 @@
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.');
Loading…
Cancel
Save