We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4e8983 commit b06113aCopy full SHA for b06113a
test/parallel/test-domain-from-timer.js
@@ -27,11 +27,11 @@ const assert = require('assert');
27
28
// timeouts call the callback directly from cc, so need to make sure the
29
// domain will be used regardless
30
-setTimeout(function() {
+setTimeout(() => {
31
const domain = require('domain');
32
const d = domain.create();
33
- d.run(function() {
34
- process.nextTick(function() {
+ d.run(() => {
+ process.nextTick(() => {
35
console.trace('in nexttick', process.domain === d);
36
assert.strictEqual(process.domain, d);
37
});
0 commit comments