These tests verify that the ORT Node.js binding handles various process exit scenarios without crashing, specifically addressing the mutex crash issue reported in #24579.
process.exit() calls - Tests the primary crash scenario that was fixedsession.release() and automatic cleanupEach test runs in a separate Node.js process to isolate the test environment. Tests use command-line flags to control behavior:
--process-exit: Triggers process.exit(0)--throw-exception: Throws an uncaught exception--release: Calls session.release() before exitAll tests should pass without mutex lock failed or std::__1::system_error messages in stderr.