Skip to content

Commit bf3dcf7

Browse files
authored
refactor: add js:: namespace to GetProxyHandler
1 parent 8a600bc commit bf3dcf7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pyTypeFactory.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ PyType *pyTypeFactory(JSContext *cx, JS::Rooted<JSObject *> *thisObj, JS::Rooted
9696
JS::Rooted<JSObject *> obj(cx);
9797
JS_ValueToObject(cx, *rval, &obj);
9898
if (JS::GetClass(obj)->isProxyObject()) {
99-
if (GetProxyHandler(obj)->family() == &PyProxyHandler::family) { // this is one of our proxies for python dicts
100-
return new DictType(((PyProxyHandler *)GetProxyHandler(obj))->pyObject);
99+
if (js::GetProxyHandler(obj)->family() == &PyProxyHandler::family) { // this is one of our proxies for python dicts
100+
return new DictType(((PyProxyHandler *)js::GetProxyHandler(obj))->pyObject);
101101
}
102-
if (GetProxyHandler(obj)->family() == &PyListProxyHandler::family) { // this is one of our proxies for python lists
103-
return new ListType(((PyListProxyHandler *)GetProxyHandler(obj))->pyObject);
102+
if (js::GetProxyHandler(obj)->family() == &PyListProxyHandler::family) { // this is one of our proxies for python lists
103+
return new ListType(((PyListProxyHandler *)js::GetProxyHandler(obj))->pyObject);
104104
}
105105
}
106106
js::ESClass cls;

0 commit comments

Comments
 (0)