diff --git a/lib/env.js b/lib/env.js index 088ff1ee..b5e1af7f 100644 --- a/lib/env.js +++ b/lib/env.js @@ -42,8 +42,8 @@ define(function(require) { }; function isNode () { - return typeof process !== 'undefined' && process !== null && - typeof process.nextTick === 'function'; + return typeof process !== 'undefined' && + Object.prototype.toString.call(process) === '[object process]'; } function hasMutationObserver () {