async_hooks: make sure `.{en|dis}able() === this`
Make sure that hook.enable()
and hook.disable()
return hook
consistently, as the documentation indicates.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
async_hooks /cc @nodejs/async_hooks