0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
isaacs 430d94ef85 nextTick: Preserve depth in error/reentry cases
When there is an error that is thrown in a nextTick function, which is
then handled by a domain or other process.on('uncaughtException')
handler, if the error handler *also* adds a nextTick and triggers
multiple MakeCallback events (ie, by doing some I/O), then it would
skip over the tickDepth check, resulting in an infinite spin.

Solution: Check the tickDepth at the start of the tick processing, and
preserve it when we are cleaning up in the error case or exiting early
in the re-entry case.

In order to make sure that tick callbacks are *eventually* handled, any
callback triggered by the underlying spinner in libuv will be processed
as if starting from a tick depth of 0.
2012-07-19 10:29:15 -07:00
..
addons test: update addons .gitignore 2012-05-24 14:07:09 +02:00
disabled Merge remote-tracking branch 'ry/v0.6' into master 2012-04-18 11:57:54 -07:00
fixtures module: add filename to require() json errors 2012-07-06 15:26:41 -07:00
gc test: use the debug build of node-weak when necessary 2012-06-13 17:58:28 -07:00
internet Revert "DNS: Support NAPTR queries" 2012-06-16 11:02:49 -07:00
message Update message test for new v8 behavior 2012-06-14 08:37:44 -07:00
pummel test: make test-fs-watch-file write to tmp dir 2012-07-09 15:48:43 +02:00
simple nextTick: Preserve depth in error/reentry cases 2012-07-19 10:29:15 -07:00
common.js typed arrays: add Uint8ClampedArray 2012-03-28 22:57:15 +02:00