mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-28 09:13:45 +00:00
Support new SpiderMonkey API.
wposix: Define int8_t compatibly with SpiderMonkey. Remove unused camera, lightenv JS interfaces. Remove most of vector JS interface. Remove some of the redundant JS string conversion functions. Remove unneeded vmem, _lodBias functions. Clean up some formatting. This was SVN commit r8629.
This commit is contained in:
@@ -46,10 +46,6 @@ template<> jsval ScriptInterface::ToJSVal<SDL_Event_>(JSContext* cx, SDL_Event_
|
||||
default: typeName = "(unknown)"; break;
|
||||
}
|
||||
|
||||
ScriptInterface::LocalRootScope scope(cx);
|
||||
if (! scope.OK())
|
||||
return JSVAL_VOID;
|
||||
|
||||
JSObject* obj = JS_NewObject(cx, NULL, NULL, NULL);
|
||||
if (! obj)
|
||||
return JSVAL_VOID;
|
||||
@@ -123,7 +119,6 @@ template<> jsval ScriptInterface::ToJSVal<SDL_Event_>(JSContext* cx, SDL_Event_
|
||||
|
||||
jsval rval = OBJECT_TO_JSVAL(obj);
|
||||
|
||||
scope.LeaveWithResult(rval);
|
||||
return rval;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user