mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
This change implements the `Symbol.dispose` key in the `ModuleHooks` class as an alias for deregister. This makes `registerHooks` work with the `using` keyword. Fixes: https://github.com/nodejs/node/issues/63846 Signed-off-by: Remco Haszing <remcohaszing@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63928 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: René <contact.9a5d6388@renegade334.me.uk> Reviewed-By: Jacob Smith <jacob@frende.me>