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 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.