Skip to content

vm: don't print out arrow message for custom error

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/fix-7397 into master
Checklist
  • make -j4 test (UNIX) or vcbuild test nosign (Windows) passes
  • a test and/or benchmark is included
  • the commit message follows commit guidelines
Affected core subsystem(s)

vm

Description of change

In AppendExceptionLine(), which is used both by the vm module and the uncaught exception handler, don’t print anything to stderr when called from the vm module, even if the thrown object is not a native error instance.

Fixes: https://github.com/nodejs/node/issues/7397

Merge request reports

Loading