mirror of
https://github.com/nodejs/node.git
synced 2025-05-13 21:16:45 +00:00

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>
10 lines
151 B
Python
10 lines
151 B
Python
{
|
|
'targets': [
|
|
{
|
|
'target_name': 'binding',
|
|
'defines': [ 'V8_DEPRECATION_WARNINGS=1' ],
|
|
'sources': [ 'binding.cc' ]
|
|
}
|
|
]
|
|
}
|