Skip to content

Commit

Permalink
test: replaced functions with arrow functions
Browse files Browse the repository at this point in the history
PR-URL: #23511
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
edgarzapeka authored and jasnell committed Oct 17, 2018
1 parent e4e8983 commit b06113a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-domain-from-timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ const assert = require('assert');

// timeouts call the callback directly from cc, so need to make sure the
// domain will be used regardless
setTimeout(function() {
setTimeout(() => {
const domain = require('domain');
const d = domain.create();
d.run(function() {
process.nextTick(function() {
d.run(() => {
process.nextTick(() => {
console.trace('in nexttick', process.domain === d);
assert.strictEqual(process.domain, d);
});
Expand Down

0 comments on commit b06113a

Please sign in to comment.