src: deprecate AddPromiseHook()
This API was added to fill an use case that is served by async_hooks
,
since that has Promise
support.
Deprecate this, as the underlying Isolate::SetPromiseHook()
may be
removed in its current form in the future.
Refs: https://docs.google.com/document/d/1g8OrG5lMIUhRn1zbkutgY83MiTSMx-0NHDs8Bf-nXxM/
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines