Files
node/lib
Trevor Norris a2fdb76677 async_wrap: use kTotals to enable PromiseHook
Keep a total of enabled hook callbacks in kTotals. This value is used to
track whether node::PromiseHook (src/async-wrap.cc) should be enabled or
disabled.

Don't enable node::PromiseHook, using enablePromiseHook(), until a hook
has been added. Then, using disablePromiseHook(), disable
node::PromiseHook when all hooks have been disabled.

Need to use a native test in order to check the internal field of the
Promise and check for a PromiseWrap.

PR-URL: https://github.com/nodejs/node/pull/13509
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2017-06-10 11:38:05 +02:00
..
2017-05-27 09:28:07 +02:00
2017-06-09 19:09:28 +02:00
2017-06-07 16:15:45 -04:00
2017-06-07 12:54:00 -07:00
2017-06-06 17:20:23 -04:00
2016-10-04 12:17:32 -04:00
2017-03-10 11:23:48 -08:00
2017-04-28 14:29:45 -07:00
2017-03-10 11:23:48 -08:00
2017-06-05 10:56:52 -07:00