Skip to content
Permalink
Browse files
fix: do not fail if no process (#1440)
  • Loading branch information
alexander-fenster committed Jul 13, 2020
1 parent b950877 commit f2faa8c32e918b3b843005f0419608b8e158998d
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/util/minimal.js
@@ -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.

0 comments on commit f2faa8c

Please sign in to comment.