test: replaced functions with arrow functions

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
edgarzapeka 2018-10-12 10:01:27 -07:00 committed by Ruben Bridgewater
parent 183838d30b
commit 3b477224a4
No known key found for this signature in database
GPG Key ID: F07496B3EB3C1762

View File

@ -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);
});