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

Method JSObjectProxy_get_subscript

src/JSObjectProxy.cc:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_get_subscript(JSObjectProxy *self, PyObject *key)
157{
158 JS::RootedId id(GLOBAL_CX);
159 if (!keyToId(key, &id)) {
160 PyErr_SetString(PyExc_AttributeError, "JSObjectProxy property name must be of type str or int");
161 return NULL;
162 }
163
164 return getKey(self, key, id, true);
165}
166
167int JSObjectProxyMethodDefinitions::JSObjectProxy_contains(JSObjectProxy *self, PyObject *key)
168{

Callers

nothing calls this directly

Calls 2

keyToIdFunction · 0.85
getKeyFunction · 0.85

Tested by

no test coverage detected