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 22a4ec1

Browse filesBrowse files
edgarzapekaMylesBorins
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 a098528 commit 22a4ec1
Copy full SHA for 22a4ec1

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-domain-from-timer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-domain-from-timer.js
+3-3Lines changed: 3 additions & 3 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.