Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 627e3ad

Browse filesBrowse files
jennazeeMylesBorins
authored andcommitted
test: use arrow functions in test-exception-handler
PR-URL: #23498 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 13afb68 commit 627e3ad
Copy full SHA for 627e3ad

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-exception-handler.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-exception-handler.js
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ const assert = require('assert');
2525

2626
const MESSAGE = 'catch me if you can';
2727

28-
process.on('uncaughtException', common.mustCall(function(e) {
28+
process.on('uncaughtException', common.mustCall((e) => {
2929
console.log('uncaught exception! 1');
3030
assert.strictEqual(MESSAGE, e.message);
3131
}));
3232

33-
process.on('uncaughtException', common.mustCall(function(e) {
33+
process.on('uncaughtException', common.mustCall((e) => {
3434
console.log('uncaught exception! 2');
3535
assert.strictEqual(MESSAGE, e.message);
3636
}));
3737

38-
setTimeout(function() {
38+
setTimeout(() => {
3939
throw new Error(MESSAGE);
4040
}, 10);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.