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

Method JSArrayProxy_length

src/JSArrayProxy.cc:49–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49Py_ssize_t JSArrayProxyMethodDefinitions::JSArrayProxy_length(JSArrayProxy *self)
50{
51 uint32_t length;
52 JS::GetArrayLength(GLOBAL_CX, *(self->jsArray), &length);
53 return (Py_ssize_t)length;
54}
55
56PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_get(JSArrayProxy *self, PyObject *key)
57{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected