diff --git a/test/parallel/test-domain-from-timer.js b/test/parallel/test-domain-from-timer.js index ead0e1b8382fc5..3f8252543c9d2f 100644 --- a/test/parallel/test-domain-from-timer.js +++ b/test/parallel/test-domain-from-timer.js @@ -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); });