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

Method JSArrayProxy_clear_method

src/JSArrayProxy.cc:761–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

759}
760
761PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_clear_method(JSArrayProxy *self) {
762 JS::SetArrayLength(GLOBAL_CX, *(self->jsArray), 0);
763 Py_RETURN_NONE;
764}
765
766PyObject *JSArrayProxyMethodDefinitions::JSArrayProxy_copy(JSArrayProxy *self) {
767 JS::Rooted<JS::ValueArray<2>> jArgs(GLOBAL_CX);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected