Skip to content

src: fix node::FatalException

If a fatal exception occurs before node had a chance to setup the handler in JS properly, node::FatalException crashes with

FATAL ERROR: v8::Function::Cast Could not convert to function

This fixes the function to display the JS error instead of crashing.

cc @addaleax

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading