Skip to content

Commit 66dbb97

Browse files
adjustment to __class__ for arrayproxy
1 parent b52383c commit 66dbb97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JSArrayProxy.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_get(JSArrayProxy *self, Py
5454
if (methodName == NULL || !PyUnicode_Check(key)) { // reached end of list
5555
JS::RootedValue value(GLOBAL_CX);
5656
JS_GetPropertyById(GLOBAL_CX, *(self->jsArray), id, &value);
57-
if (value.isUndefined()) {
57+
if (value.isUndefined() && PyUnicode_Check(key)) {
5858
if (strcmp("__class__", PyUnicode_AsUTF8(key)) == 0) {
5959
return PyObject_GenericGetAttr((PyObject *)self, key);
6060
}

0 commit comments

Comments
 (0)