Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/internal/cluster/worker.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/internal/cluster/worker.js b/lib/internal/cluster/worker.js
index 53285413530..d5dfef43871 100644
--- a/lib/internal/cluster/worker.js
+++ b/lib/internal/cluster/worker.js
@@ -7,6 +7,8 @@ const {
const EventEmitter = require('events');
+const { kEmptyObject } = require('internal/util');
+
module.exports = Worker;
// Common Worker implementation shared between the cluster primary and workers.
@@ -17,7 +19,7 @@ function Worker(options) {
ReflectApply(EventEmitter, this, []);
if (options === null || typeof options !== 'object')
- options = {};
+ options = kEmptyObject;
this.exitedAfterDisconnect = undefined;