Unverified Commit f94fd0c0 authored by Andreas Madsen's avatar Andreas Madsen
Browse files

async_hooks: fix nested hooks mutation

In some cases restoreTmpHooks is called too early, this causes
active_hooks_array to change during execution of the init hooks.

PR-URL: https://github.com/nodejs/node/pull/14143
Ref: https://github.com/nodejs/node/pull/14054#issuecomment-313915193


Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
parent 8a830350
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment