cli: add --trace-uncaught flag
Add a flag that makes Node.js print the stack trace at the
time of throwing uncaught exceptions, rather than at the
creation of the Error
object, if there is any.
This is disabled by default because it affects GC behavior.
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