diff --git a/lib/step.js b/lib/step.js index b524a6a..e3a7054 100755 --- a/lib/step.js +++ b/lib/step.js @@ -99,8 +99,11 @@ function Step() { localCallback(error, result); } } - process.nextTick(check); // Ensures that check is called at least once - + + if (process && typeof process.nextTick == 'function') { + process.nextTick(check); // Ensures that check is called at least once + } + // Generates a callback for the group return function () { var index = counter++;