Skip to content

src: attach error to stack on displayErrors

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/disp-errs into master

The vm module's displayErrors option attaches error arrow messages as a hidden property. Later, core JavaScript code can optionally decorate the error stack with the arrow message. However, when user code catches an error, it has no way to access the arrow message. This commit changes the behavior of displayErrors to mean "decorate the error stack if an error occurs."

Fixes: https://github.com/nodejs/node/issues/4835 R= @bnoordhuis

Merge request reports

Loading