0ad/source/simulation2/scripting
Yves 1b5ab8142e Makes custom JS objects compatible with SpiderMonkey ESR31.
In v24 you called JS_InitClass and passed in a definition of JSNative
functions. Later you could call JS_NewObject with this class and the
object would get a prototype with the specified JSNative functions.
In ESR31 you now have to explicitly store the prototype object returned
by JS_InitClass and pass it as prototype argument to JS_NewObject to
achieve the same.
This change modifies our existing ScriptInterface implementation for
custom object types a bit and uses it at places where the JSAPI was used
directly before.

Refs #2462

This was SVN commit r15524.
2014-07-13 15:31:48 +00:00
..
EngineScriptConversions.cpp Makes custom JS objects compatible with SpiderMonkey ESR31. 2014-07-13 15:31:48 +00:00
MessageTypeConversions.cpp Changes FromJSVal to take a JS::HandleValue instead of JS::Value. 2014-07-12 19:08:39 +00:00
ScriptComponent.cpp Improve performance of full state hash computation, by skipping script components that are known to have no data. 2011-03-05 22:30:32 +00:00
ScriptComponent.h Improve performance of full state hash computation, by skipping script components that are known to have no data. 2011-03-05 22:30:32 +00:00