Browse Source

test: Use setImmediate for recursive deferral

This should have been with 21c741f, but didn't catch it then.
Taking our own advice.
v0.9.4-release
isaacs 12 years ago
parent
commit
a12c42ca2f
  1. 2
      test/fixtures/catch-stdout-error.js

2
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();
});
}

Loading…
Cancel
Save