Skip to content

Commit

Permalink
fix: Unitech#4588 import syntax on Node 9.x
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Jan 21, 2020
1 parent ec908b2 commit 31cb2af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/God.js
Expand Up @@ -30,7 +30,7 @@ var semver = require('semver');
/**
* Override cluster module configuration
*/
if (semver.lt(process.version, '9.0.0')) {
if (semver.lt(process.version, '10.0.0')) {
cluster.setupMaster({
windowsHide: true,
exec : path.resolve(path.dirname(module.filename), 'ProcessContainerLegacy.js')
Expand Down
2 changes: 1 addition & 1 deletion lib/God/ForkMode.js
Expand Up @@ -55,7 +55,7 @@ module.exports = function ForkMode(God) {
}

if (interpreter === 'node' || RegExp('node$').test(interpreter)) {
if (semver.lt(process.version, '9.0.0')) {
if (semver.lt(process.version, '10.0.0')) {
args.push(path.resolve(path.dirname(module.filename), '..', 'ProcessContainerForkLegacy.js'));
}
else {
Expand Down

0 comments on commit 31cb2af

Please sign in to comment.