Attempt to fix GUI script interaction with JITs.

Simplify some other GUI script interface code.

This was SVN commit r8657.
This commit is contained in:
Ykkrosh
2010-11-20 00:45:58 +00:00
parent 2c8e683214
commit 64bd264fc0
3 changed files with 81 additions and 29 deletions
@@ -99,9 +99,7 @@ JSBool JSI_IGUIObject::getProperty(JSContext* cx, JSObject* obj, jsid id, jsval*
if (parent)
{
// If the object isn't parentless, return a new object
JSObject* entity = JS_NewObject(cx, &JSI_IGUIObject::JSI_class, NULL, NULL);
JS_SetPrivate(cx, entity, parent);
*vp = OBJECT_TO_JSVAL(entity);
*vp = OBJECT_TO_JSVAL(parent->GetJSObject());
}
else
{