Skip to content

Commit b06113a

Browse files
edgarzapekajasnell
authored andcommitted
test: replaced functions with arrow functions
PR-URL: #23511 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent e4e8983 commit b06113a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/parallel/test-domain-from-timer.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ const assert = require('assert');
2727

2828
// timeouts call the callback directly from cc, so need to make sure the
2929
// domain will be used regardless
30-
setTimeout(function() {
30+
setTimeout(() => {
3131
const domain = require('domain');
3232
const d = domain.create();
33-
d.run(function() {
34-
process.nextTick(function() {
33+
d.run(() => {
34+
process.nextTick(() => {
3535
console.trace('in nexttick', process.domain === d);
3636
assert.strictEqual(process.domain, d);
3737
});

0 commit comments

Comments
 (0)