report: honor setUncaughtExceptionCaptureCallback
This api does not alter the behavior of diagnostic report configured to on uncaught exceptions. This is deemed as a bug. Honor this API.
Refs: https://github.com/nodejs/node/pull/35588
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
/cc @addaleax