Skip to content

src: call `Environment::Exit()` for fatal exceptions

Rodrigo Muino Tomonari requested to merge github/fork/addaleax/errors-exit into master

Tests fail without the first commit, so they are in one PR.

src: reset StopTracingAgent() before platform teardown

This makes sure that StopTracingAgent() is always called before tearing down the tracing::Agent, since previously its destructor might have tried to access the agent, which would be destroyed by the (earlier) Dispose() call.

src: call Environment::Exit() for fatal exceptions

Call Environment::Exit() rather than the process-wide exit() function, since JS exceptions generally only affect the current JS engine instance.

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

Merge request reports

Loading