diff --git a/src/util.js b/src/util.js index 45ea3beda..314322d6d 100644 --- a/src/util.js +++ b/src/util.js @@ -385,8 +385,12 @@ var ret = { domainBind: domainBind }; ret.isRecentNode = ret.isNode && (function() { - var version = process.versions.node.split(".").map(Number); - return (version[0] === 0 && version[1] > 10) || (version[0] > 0); + if (process.versions) { + var version = process.versions.node.split(".").map(Number); + return (version[0] === 0 && version[1] > 10) || (version[0] > 0); + } + + return false })(); if (ret.isNode) ret.toFastProperties(process);