mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05: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:
1 parent
07d3b21f43
commit
a12c42ca2f
1 file changed
+1
-1
Vendored
+1
-1
@@ -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