Skip to content

Commit 5a9694e

Browse files
rt33MylesBorins
authored andcommitted
test: change callback function to arrow function
PR-URL: #17734 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]>
1 parent d6c5885 commit 5a9694e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-domain-no-error-handler-abort-on-uncaught-9.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ function test() {
1010
d.on('error', function errorHandler() {
1111
});
1212

13-
d.run(function() {
14-
d2.run(function() {
13+
d.run(() => {
14+
d2.run(() => {
1515
const fs = require('fs');
1616
fs.exists('/non/existing/file', function onExists() {
1717
throw new Error('boom!');

0 commit comments

Comments
 (0)