mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: Use setImmediate for recursive deferral
This should have been with 21c741f, but didn't catch it then.
Taking our own advice.
This commit is contained in:
2
test/fixtures/catch-stdout-error.js
vendored
2
test/fixtures/catch-stdout-error.js
vendored
@@ -25,7 +25,7 @@ function write() {
|
||||
} catch (ex) {
|
||||
throw new Error('this should never happen');
|
||||
}
|
||||
process.nextTick(function() {
|
||||
setImmediate(function() {
|
||||
write();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user