diff --git a/lib/core/processes/processWrapper.js b/lib/core/processes/processWrapper.js index a897505c1..26137474d 100644 --- a/lib/core/processes/processWrapper.js +++ b/lib/core/processes/processWrapper.js @@ -14,10 +14,11 @@ class ProcessWrapper { * * @param {Options} options pingParent: true by default */ - constructor(options = {pingParent: true}) { + constructor(options = {}) { + this.options = Object.assign({pingParent: true}, options); this.interceptLogs(); this.events = new Events(); - if(options.pingParent) { + if(this.options.pingParent) { this.pingParent(); } }