diff --git a/when.js b/when.js index 78249532..cfcb7542 100644 --- a/when.js +++ b/when.js @@ -685,7 +685,7 @@ define(function () { ? typeof window === 'undefined' ? setImmediate : setImmediate.bind(window) - : typeof process === 'object' + : typeof process === 'object' && process.nextTick ? process.nextTick : function(task) { timeout(task, 0); };