A class using the RAII (Resource Acquisition Is Initialization) idiom to manage initialization and shutdown of the SpiderMonkey script engine.
More...
A class using the RAII (Resource Acquisition Is Initialization) idiom to manage initialization and shutdown of the SpiderMonkey script engine.
It also keeps a count of active script contexts in order to validate the following constraints:
- JS_Init must be called before any ScriptContexts are initialized
- JS_Shutdown must be called after all ScriptContexts have been destroyed