We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07cd9c6 commit 77a9313Copy full SHA for 77a9313
lib/async_hooks.js
@@ -101,9 +101,8 @@ class AsyncHook {
101
return this;
102
103
const prev_kTotals = hook_fields[kTotals];
104
- hook_fields[kTotals] = 0;
105
106
- hook_fields[kTotals] += hook_fields[kInit] -= +!!this[init_symbol];
+ hook_fields[kTotals] = hook_fields[kInit] -= +!!this[init_symbol];
107
hook_fields[kTotals] += hook_fields[kBefore] -= +!!this[before_symbol];
108
hook_fields[kTotals] += hook_fields[kAfter] -= +!!this[after_symbol];
109
hook_fields[kTotals] += hook_fields[kDestroy] -= +!!this[destroy_symbol];
0 commit comments