Permalink
Browse files

test: Use setImmediate for recursive deferral

This should have been with 21c741f, but didn't catch it then.
Taking our own advice.
  • Loading branch information...
1 parent 07d3b21 commit a12c42ca2f8d5ce71c75cab334a53bd71bdaea09 @isaacs isaacs committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/fixtures/catch-stdout-error.js
@@ -25,7 +25,7 @@ function write() {
} catch (ex) {
throw new Error('this should never happen');
}
- process.nextTick(function() {
+ setImmediate(function() {
write();
});
}

0 comments on commit a12c42c

Please sign in to comment.