Skip to content

Commit

Permalink
fix: do not fail if no process (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Jul 13, 2020
1 parent b950877 commit f2faa8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/minimal.js
Expand Up @@ -52,7 +52,9 @@ util.emptyObject = Object.freeze ? Object.freeze({}) : /* istanbul ignore next *
* @type {boolean}
* @const
*/
util.isNode = Boolean(process && process.versions && process.versions.node);
util.isNode = Boolean(typeof process !== "undefined" && process &&
typeof process.versions !== "undefined" && process.versions &&
process.versions.node);

/**
* Tests if the specified value is an integer.
Expand Down

0 comments on commit f2faa8c

Please sign in to comment.