| 27 | const char PyDictProxyHandler::family = 0; |
| 28 | |
| 29 | bool 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 | |
| 38 | bool PyDictProxyHandler::delete_(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, |
| 39 | JS::ObjectOpResult &result) const { |
no outgoing calls
no test coverage detected