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 Oct 30, 2018
1 parent a098528 commit 22a4ec1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-domain-from-timer.js
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 22a4ec1

Please sign in to comment.