From a12c42ca2f8d5ce71c75cab334a53bd71bdaea09 Mon Sep 17 00:00:00 2001 From: isaacs Date: Wed, 31 Oct 2012 17:07:58 -0700 Subject: [PATCH] test: Use setImmediate for recursive deferral This should have been with 21c741f, but didn't catch it then. Taking our own advice. --- test/fixtures/catch-stdout-error.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixtures/catch-stdout-error.js b/test/fixtures/catch-stdout-error.js index a244946148..bdd09b5ab8 100644 --- a/test/fixtures/catch-stdout-error.js +++ b/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(); }); }