node: support v8 microtask queue
authorVladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
Thu, 4 Sep 2014 16:02:04 +0000 (20:02 +0400)
committerTrevor Norris <trev.norris@gmail.com>
Thu, 18 Sep 2014 21:13:06 +0000 (14:13 -0700)
commit30bd7b672cbb7ef9a400eb34f6d5c778991e1b3c
tree1f1e217eef3b667bbf6861bc819c1afa48499532
parent9c992bdb752063913067feb533cd3db37d2e4d01
node: support v8 microtask queue

When V8 started supporting Promises natively it also introduced a
microtack queue. This feature operates similar to process.nextTick(),
and created an issue where neither knew when the other had run. This
patch has nextTick() call the microtask queue runner at the end of
processing callbacks in the nextTickQueue.

Fixes: https://github.com/joyent/node/issues/7714
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
src/node.cc
src/node.js
test/simple/test-microtask-queue-integration-domain.js [new file with mode: 0644]
test/simple/test-microtask-queue-integration.js [new file with mode: 0644]