Skip to main content

install_exit_handler

Function install_exit_handler 

Source
pub fn install_exit_handler()
Expand description

Install orderly shutdown hooks for SpiderMonkey.

No-op at init time. Tests should call shutdown_thread_sm() at the end of each test function (before returning) to properly clean up the SpiderMonkey Runtime and Engine. Without this, C++ TLS destructors (MutexImpl::~MutexImpl) will SIGSEGV on thread exit.

This function is kept for API compatibility with existing test files.