From b06113aba1acb3927b3d1117d7ce5d0bfec3d03d Mon Sep 17 00:00:00 2001 From: edgarzapeka Date: Fri, 12 Oct 2018 10:01:27 -0700 Subject: [PATCH] test: replaced functions with arrow functions PR-URL: https://github.com/nodejs/node/pull/23511 Reviewed-By: James M Snell Reviewed-By: Gireesh Punathil Reviewed-By: Colin Ihrig Reviewed-By: Trivikram Kamat Reviewed-By: Ruben Bridgewater --- test/parallel/test-domain-from-timer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); });