()
| 273 | // Manage Active Hooks // |
| 274 | |
| 275 | function getHookArrays() { |
| 276 | if (active_hooks.call_depth === 0) |
| 277 | return [active_hooks.array, async_hook_fields]; |
| 278 | // If this hook is being enabled while in the middle of processing the array |
| 279 | // of currently active hooks then duplicate the current set of active hooks |
| 280 | // and store this there. This shouldn't fire until the next time hooks are |
| 281 | // processed. |
| 282 | if (active_hooks.tmp_array === null) |
| 283 | storeActiveHooks(); |
| 284 | return [active_hooks.tmp_array, active_hooks.tmp_fields]; |
| 285 | } |
| 286 | |
| 287 | |
| 288 | function storeActiveHooks() { |
no test coverage detected
searching dependent graphs…