We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af68c55 commit f8af209Copy full SHA for f8af209
test/parallel/test-exception-handler.js
@@ -25,16 +25,16 @@ const assert = require('assert');
25
26
const MESSAGE = 'catch me if you can';
27
28
-process.on('uncaughtException', common.mustCall(function(e) {
+process.on('uncaughtException', common.mustCall((e) => {
29
console.log('uncaught exception! 1');
30
assert.strictEqual(MESSAGE, e.message);
31
}));
32
33
34
console.log('uncaught exception! 2');
35
36
37
38
-setTimeout(function() {
+setTimeout(() => {
39
throw new Error(MESSAGE);
40
}, 10);
0 commit comments