diff options
author | isaacs <i@izs.me> | 2012-10-31 17:07:58 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-10-31 17:07:58 -0700 |
commit | a12c42ca2f8d5ce71c75cab334a53bd71bdaea09 (patch) | |
tree | 4e611f8ae5f9dc48a39cda3372fe7b57849c93b1 /test/fixtures | |
parent | 07d3b21f4352e58928b6b6c2c3c0bfc59153bea9 (diff) | |
download | node-a12c42ca2f8d5ce71c75cab334a53bd71bdaea09.tar.gz |
test: Use setImmediate for recursive deferral
This should have been with 21c741f, but didn't catch it then.
Taking our own advice.
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/catch-stdout-error.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/fixtures/catch-stdout-error.js b/test/fixtures/catch-stdout-error.js index a24494614..bdd09b5ab 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(); }); } |