We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b950877 commit f2faa8cCopy full SHA for f2faa8c
src/util/minimal.js
@@ -52,7 +52,9 @@ util.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next *
52
* @type {boolean}
53
* @const
54
*/
55
-util.isNode = Boolean(process && process.versions && process.versions.node);
+util.isNode = Boolean(typeof process !== "undefined" && process &&
56
+ typeof process.versions !== "undefined" && process.versions &&
57
+ process.versions.node);
58
59
/**
60
* Tests if the specified value is an integer.
0 commit comments