Skip to content

Commit 77a9313

Browse files
committed
squash: same changes for disable
1 parent 07cd9c6 commit 77a9313

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/async_hooks.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,8 @@ class AsyncHook {
101101
return this;
102102

103103
const prev_kTotals = hook_fields[kTotals];
104-
hook_fields[kTotals] = 0;
105104

106-
hook_fields[kTotals] += hook_fields[kInit] -= +!!this[init_symbol];
105+
hook_fields[kTotals] = hook_fields[kInit] -= +!!this[init_symbol];
107106
hook_fields[kTotals] += hook_fields[kBefore] -= +!!this[before_symbol];
108107
hook_fields[kTotals] += hook_fields[kAfter] -= +!!this[after_symbol];
109108
hook_fields[kTotals] += hook_fields[kDestroy] -= +!!this[destroy_symbol];

0 commit comments

Comments
 (0)