src: call `Environment::Exit()` for fatal exceptions
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), orvcbuild test
(Windows) passes -
commit message follows commit guidelines