Skip to content

Commit 8fce205

Browse files
substacksubstack
authored andcommitted
use nextTick to get back 0.8 support
1 parent c8d1da8 commit 8fce205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Deps (opts) {
2828

2929
this.basedir = opts.basedir || process.cwd();
3030
this.persistentCache = opts.persistentCache || function (file, id, pkg, fallback, cb) {
31-
setImmediate(function () {
31+
process.nextTick(function () {
3232
fallback(null, cb);
3333
});
3434
};

0 commit comments

Comments
 (0)