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 <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>
  • Loading branch information
edgarzapeka authored and MylesBorins committed Nov 29, 2018
1 parent a059180 commit 0267e2f
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 0267e2f

Please sign in to comment.