Comparing version 0.8.3 to 0.8.4
34
index.js
@@ -368,20 +368,22 @@ 'use strict'; | ||
var worker = _cluster_fork.apply(this, arguments); | ||
// we get an open handle for a pipe, but no reference to the | ||
// worker itself, so we add one, as well as the call site info | ||
if (worker && worker.process && worker.process._channel) { | ||
Object.defineProperties(worker.process._channel, { | ||
__callSite: { | ||
enumerable: false, | ||
configurable: false, | ||
writable: false, | ||
value: findCallsite(getStack()) | ||
}, | ||
__worker: { | ||
enumerable: false, | ||
configurable: false, | ||
writable: false, | ||
value: worker | ||
} | ||
}); | ||
if (worker && worker.process) { | ||
var channel = worker.process.channel || worker.process._channel; | ||
if (!channel.hasOwnProperty('__callSite')) { | ||
Object.defineProperties(worker.process._channel, { | ||
__callSite: { | ||
enumerable: false, | ||
configurable: false, | ||
writable: false, | ||
value: findCallsite(getStack()) | ||
}, | ||
__worker: { | ||
enumerable: false, | ||
configurable: false, | ||
writable: false, | ||
value: worker | ||
} | ||
}); | ||
} | ||
} | ||
@@ -388,0 +390,0 @@ |
{ | ||
"name": "wtfnode", | ||
"version": "0.8.3", | ||
"version": "0.8.4", | ||
"description": "Utility to help find out why Node isn't exiting", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32741
670