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

Method ownPropertyKeys

src/PyDictProxyHandler.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27const char PyDictProxyHandler::family = 0;
28
29bool PyDictProxyHandler::ownPropertyKeys(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleIdVector props) const {
30 PyObject *self = JS::GetMaybePtrFromReservedSlot<PyObject>(proxy, PyObjectSlot);
31 PyObject *keys = PyDict_Keys(self);
32
33 size_t length = PyList_Size(keys);
34
35 return handleOwnPropertyKeys(cx, keys, length, props);
36}
37
38bool PyDictProxyHandler::delete_(JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
39 JS::ObjectOpResult &result) const {

Callers 2

enumerateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected