Skip to content

Commit

Permalink
fix: do not fail if no process
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster committed Jul 13, 2020
1 parent b950877 commit c7b6318
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/util/minimal.js
Original file line number Diff line number Diff line change
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 c7b6318

Please sign in to comment.