summaryrefslogtreecommitdiff
path: root/test/fixtures/catch-stdout-error.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2012-10-31 17:07:58 -0700
committerisaacs <i@izs.me>2012-10-31 17:07:58 -0700
commita12c42ca2f8d5ce71c75cab334a53bd71bdaea09 (patch)
tree4e611f8ae5f9dc48a39cda3372fe7b57849c93b1 /test/fixtures/catch-stdout-error.js
parent07d3b21f4352e58928b6b6c2c3c0bfc59153bea9 (diff)
downloadandroid-node-v8-a12c42ca2f8d5ce71c75cab334a53bd71bdaea09.tar.gz
android-node-v8-a12c42ca2f8d5ce71c75cab334a53bd71bdaea09.tar.bz2
android-node-v8-a12c42ca2f8d5ce71c75cab334a53bd71bdaea09.zip
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/catch-stdout-error.js')
-rw-r--r--test/fixtures/catch-stdout-error.js2
1 files changed, 1 insertions, 1 deletions
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();
});
}