Skip to content

Commit 72e5477

Browse files
should have been part of previous commit
1 parent b6fa702 commit 72e5477

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/JSArrayProxy.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_get(JSArrayProxy *self, Py
6464
JS::RootedValue *value = new JS::RootedValue(GLOBAL_CX);
6565
JS_GetPropertyById(GLOBAL_CX, self->jsArray, id, value);
6666
JS::RootedObject *thisObj = new JS::RootedObject(GLOBAL_CX, self->jsArray);
67-
return pyTypeFactory(GLOBAL_CX, global, value)->getPyObject();
67+
return pyTypeFactory(GLOBAL_CX, thisObj, value)->getPyObject();
6868
}
6969
else if (PyUnicode_Check(key)) {
7070
if (strcmp(methodName, PyUnicode_AsUTF8(key)) == 0) {
@@ -75,7 +75,7 @@ PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_get(JSArrayProxy *self, Py
7575
JS::RootedValue *value = new JS::RootedValue(GLOBAL_CX);
7676
JS_GetPropertyById(GLOBAL_CX, self->jsArray, id, value);
7777
JS::RootedObject *thisObj = new JS::RootedObject(GLOBAL_CX, self->jsArray);
78-
return pyTypeFactory(GLOBAL_CX, global, value)->getPyObject();
78+
return pyTypeFactory(GLOBAL_CX, thisObj, value)->getPyObject();
7979
}
8080
}
8181
}

src/JSObjectProxy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_get(JSObjectProxy *self,
104104
JS::RootedValue *value = new JS::RootedValue(GLOBAL_CX);
105105
JS_GetPropertyById(GLOBAL_CX, self->jsObject, id, value);
106106
JS::RootedObject *thisObj = new JS::RootedObject(GLOBAL_CX, self->jsObject);
107-
return pyTypeFactory(GLOBAL_CX, global, value)->getPyObject();
107+
return pyTypeFactory(GLOBAL_CX, thisObj, value)->getPyObject();
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)