Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
kEmptyObject
1 parent 4109ddc commit 7b5cb14Copy full SHA for 7b5cb14
lib/internal/cluster/worker.js
@@ -7,6 +7,8 @@ const {
7
8
const EventEmitter = require('events');
9
10
+const { kEmptyObject } = require('internal/util');
11
+
12
module.exports = Worker;
13
14
// Common Worker implementation shared between the cluster primary and workers.
@@ -17,7 +19,7 @@ function Worker(options) {
17
19
ReflectApply(EventEmitter, this, []);
18
20
21
if (options === null || typeof options !== 'object')
- options = {};
22
+ options = kEmptyObject;
23
24
this.exitedAfterDisconnect = undefined;
25
0 commit comments