11#ifndef PythonMonkey_PyListProxy_
12#define PythonMonkey_PyListProxy_
32 void finalize(JS::GCContext *gcx, JSObject *proxy)
const override;
35 JSContext *cx, JS::HandleObject proxy, JS::HandleId
id,
36 JS::MutableHandle<mozilla::Maybe<JS::PropertyDescriptor>> desc
40 JSContext *cx, JS::HandleObject proxy, JS::HandleId
id,
41 JS::Handle<JS::PropertyDescriptor> desc, JS::ObjectOpResult &result
44 bool ownPropertyKeys(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleIdVector props)
const override;
45 bool delete_(JSContext *cx, JS::HandleObject proxy, JS::HandleId
id, JS::ObjectOpResult &result)
const override;
46 bool isArray(JSContext *cx, JS::HandleObject proxy, JS::IsArrayAnswer *answer)
const override;
47 bool getBuiltinClass(JSContext *cx, JS::HandleObject proxy, js::ESClass *cls)
const override;
Structs for creating JS proxy objects.
base class for PyDictProxyHandler and PyListProxyHandler
Definition PyBaseProxyHandler.hh:24
This struct is the ProxyHandler for JS Proxy Objects pythonmonkey creates to handle coercion from pyt...
Definition PyListProxyHandler.hh:21
bool ownPropertyKeys(JSContext *cx, JS::HandleObject proxy, JS::MutableHandleIdVector props) const override
Definition PyListProxyHandler.cc:2138
static const char family
Definition PyListProxyHandler.hh:24
bool delete_(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::ObjectOpResult &result) const override
Definition PyListProxyHandler.cc:2154
void finalize(JS::GCContext *gcx, JSObject *proxy) const override
Handles python object reference count when JS Proxy object is finalized.
Definition PyListProxyHandler.cc:2092
bool getOwnPropertyDescriptor(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::MutableHandle< mozilla::Maybe< JS::PropertyDescriptor > > desc) const override
Definition PyListProxyHandler.cc:1995
bool isArray(JSContext *cx, JS::HandleObject proxy, JS::IsArrayAnswer *answer) const override
Definition PyListProxyHandler.cc:2168
bool getBuiltinClass(JSContext *cx, JS::HandleObject proxy, js::ESClass *cls) const override
Definition PyListProxyHandler.cc:2173
PyListProxyHandler()
Definition PyListProxyHandler.hh:23
bool defineProperty(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::Handle< JS::PropertyDescriptor > desc, JS::ObjectOpResult &result) const override
Definition PyListProxyHandler.cc:2102