repl: improve error output
- Currently extra properties on an error will be ignored, if thrown. This information will from now on be visible.
- In case someone threw a non error object it would have resulted in
[object Object]
. Instead, the full object will now be visible. - Some cases were not detected properly as error before and "Thrown: " was visible before. That is now fixed.
- Refactor ERR_SCRIPT_EXECUTION_INTERRUPTED stack handling.
- Error objects contained the
domain
properties due to the internal handling. Those are now removed as they do not provide a benefit for the user.
Refs: #20253 (closed)
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