mirror of
https://github.com/nodejs/node-v0.x-archive.git
synced 2026-04-28 03:01:10 -04: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