| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,6 +7,8 @@ const { | |||
| 7 | 7 | ||
| 8 | 8 | const EventEmitter = require('events'); | |
| 9 | 9 | ||
| 10 | + const { kEmptyObject } = require('internal/util'); | ||
| 11 | + | ||
| 10 | 12 | module.exports = Worker; | |
| 11 | 13 | ||
| 12 | 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 | ||
| 19 | 21 | if (options === null || typeof options !== 'object') | |
| 20 | - options = {}; | ||
| 22 | + options = kEmptyObject; | ||
| 21 | 23 | ||
| 22 | 24 | this.exitedAfterDisconnect = undefined; | |
| 23 | 25 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments