| 83 | } |
| 84 | |
| 85 | bool PyDictProxyHandler::hasOwn(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, |
| 86 | bool *bp) const { |
| 87 | PyObject *attrName = idToKey(cx, id); |
| 88 | PyObject *self = JS::GetMaybePtrFromReservedSlot<PyObject>(proxy, PyObjectSlot); |
| 89 | *bp = PyDict_Contains(self, attrName) == 1; |
| 90 | return true; |
| 91 | } |
| 92 | |
| 93 | bool PyDictProxyHandler::getOwnEnumerablePropertyKeys( |
| 94 | JSContext *cx, JS::HandleObject proxy, |
no test coverage detected