Add failing uncaughtException test

FIXME
This commit is contained in:
Ryan Dahl committed 2010-08-30 12:02:22 -07:00
1 parent e49be4768b
commit 635986e433
1 file changed
+11
+11
View File
@@ -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.');