diff options
author | Anatoli Papirovski <apapirovski@mac.com> | 2018-09-13 07:35:15 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-17 20:38:07 -0700 |
commit | e7af9830e98fcda7e7a11e0b13b667163cc8c940 (patch) | |
tree | bf90f7e9823fe29f90ea9b890ec39370a3e97526 /test/message/nexttick_throw.out | |
parent | 4e9e0d339efa46316d90d6f2618afd0c0fc6cd34 (diff) | |
download | android-node-v8-e7af9830e98fcda7e7a11e0b13b667163cc8c940.tar.gz android-node-v8-e7af9830e98fcda7e7a11e0b13b667163cc8c940.tar.bz2 android-node-v8-e7af9830e98fcda7e7a11e0b13b667163cc8c940.zip |
timers: run nextTicks after each immediate and timer
In order to better match the browser behaviour, run nextTicks (and
subsequently the microtask queue) after each individual Timer and
Immediate, rather than after the whole list is processed. The
current behaviour is somewhat of a performance micro-optimization
and also partly dictated by how timer handles were implemented.
PR-URL: https://github.com/nodejs/node/pull/22842
Fixes: https://github.com/nodejs/node/issues/22257
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'test/message/nexttick_throw.out')
-rw-r--r-- | test/message/nexttick_throw.out | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/message/nexttick_throw.out b/test/message/nexttick_throw.out index 16e41f6343..09b00de80f 100644 --- a/test/message/nexttick_throw.out +++ b/test/message/nexttick_throw.out @@ -4,6 +4,7 @@ ^ ReferenceError: undefined_reference_error_maker is not defined at *test*message*nexttick_throw.js:*:* + at internalTickCallback (internal/process/next_tick.js:*:*) at process._tickCallback (internal/process/next_tick.js:*:*) at Function.Module.runMain (internal/modules/cjs/loader.js:*:*) at startup (internal/bootstrap/node.js:*:*) |