Skip to content

Commit 635986e

Browse files
committed
Add failing uncaughtException test
FIXME
1 parent e49be47 commit 635986e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
process.on('uncaughtException', function (err) {
2+
console.log('Caught exception: ' + err);
3+
});
4+
5+
setTimeout(function () {
6+
console.log('This will still run.');
7+
}, 500);
8+
9+
// Intentionally cause an exception, but don't catch it.
10+
nonexistentFunc();
11+
console.log('This will not run.');

0 commit comments

Comments
 (0)