Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a12c42ca2f8d5ce71c75cab334a53bd71bdaea09 1 parent 07d3b21
isaacs isaacs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  test/fixtures/catch-stdout-error.js
2  test/fixtures/catch-stdout-error.js
View
@@ -25,7 +25,7 @@ function write() {
} catch (ex) {
throw new Error('this should never happen');
}
- process.nextTick(function() {
+ setImmediate(function() {
write();
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.