MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / JSObjectProxy_get

Method JSObjectProxy_get

src/JSObjectProxy.cc:145–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_get(JSObjectProxy *self, PyObject *key)
146{
147 JS::RootedId id(GLOBAL_CX);
148 if (!keyToId(key, &id)) {
149 PyErr_SetString(PyExc_AttributeError, "JSObjectProxy property name must be of type str or int");
150 return NULL;
151 }
152
153 return getKey(self, key, id, false);
154}
155
156PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_get_subscript(JSObjectProxy *self, PyObject *key)
157{

Callers

nothing calls this directly

Calls 2

keyToIdFunction · 0.85
getKeyFunction · 0.85

Tested by

no test coverage detected