@@ -92,8 +92,8 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_get(JSObjectProxy *self,
9292 if (methodName == NULL ) { // reached end of list
9393 JS::RootedValue *value = new JS::RootedValue (GLOBAL_CX);
9494 JS_GetPropertyById (GLOBAL_CX, self->jsObject , id, value);
95- JS::RootedObject *global = new JS::RootedObject (GLOBAL_CX, JS::GetNonCCWObjectGlobal ( self->jsObject ) );
96- return pyTypeFactory (GLOBAL_CX, global , value)->getPyObject ();
95+ JS::RootedObject *thisObj = new JS::RootedObject (GLOBAL_CX, self->jsObject );
96+ return pyTypeFactory (GLOBAL_CX, thisObj , value)->getPyObject ();
9797 }
9898 else if (PyUnicode_Check (key)) {
9999 if (strcmp (methodName, PyUnicode_AsUTF8 (key)) == 0 ) {
@@ -103,8 +103,7 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_get(JSObjectProxy *self,
103103 else {
104104 JS::RootedValue *value = new JS::RootedValue (GLOBAL_CX);
105105 JS_GetPropertyById (GLOBAL_CX, self->jsObject , id, value);
106- JS::RootedObject *global = new JS::RootedObject (GLOBAL_CX, JS::GetNonCCWObjectGlobal (self->jsObject ));
107-
106+ JS::RootedObject *thisObj = new JS::RootedObject (GLOBAL_CX, self->jsObject );
108107 return pyTypeFactory (GLOBAL_CX, global, value)->getPyObject ();
109108 }
110109 }
0 commit comments