We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5b9835 commit b9361e7Copy full SHA for b9361e7
index.js
@@ -5,7 +5,7 @@ var SETTLED = 'settled';
5
var FULFILLED = 'fulfilled';
6
var REJECTED = 'rejected';
7
var NOOP = function () {};
8
-var isNode = typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
+var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
9
10
var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
11
var asyncQueue = [];
0 commit comments