1
0
forked from mirrors/0ad

Exact stack rooting for GetClass and GetPrivate.

Refs #2415

This was SVN commit r15606.
This commit is contained in:
Yves
2014-08-03 17:53:21 +00:00
parent 169174824f
commit f4d62152e7
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -1375,12 +1375,12 @@ bool ScriptInterface::IsExceptionPending(JSContext* cx)
return JS_IsExceptionPending(cx) ? true : false;
}
JSClass* ScriptInterface::GetClass(JSObject* obj)
JSClass* ScriptInterface::GetClass(JS::HandleObject obj)
{
return JS_GetClass(obj);
}
void* ScriptInterface::GetPrivate(JSObject* obj)
void* ScriptInterface::GetPrivate(JS::HandleObject obj)
{
// TODO: use JS_GetInstancePrivate
return JS_GetPrivate(obj);