We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e49be47 commit 635986eCopy full SHA for 635986e
1 file changed
test/simple/test-exception-handler2.js
@@ -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