Skip to content

Commit bf9ca98

Browse files
method documentation
1 parent 1be6a92 commit bf9ca98

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

include/PyBytesProxyHandler.hh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ public:
2424
PyBytesProxyHandler() : PyObjectProxyHandler(&family) {};
2525
static const char family;
2626

27+
/**
28+
* @brief [[Set]]
29+
*
30+
* @param cx pointer to JSContext
31+
* @param proxy The proxy object who's property we wish to set
32+
* @param id Key of the property we wish to set
33+
* @param v Value that we wish to set the property to
34+
* @param receiver The `this` value to use when executing any code
35+
* @param result whether or not the call succeeded
36+
* @return true call succeed
37+
* @return false call failed and an exception has been raised
38+
*/
2739
bool set(JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
2840
JS::HandleValue v, JS::HandleValue receiver,
2941
JS::ObjectOpResult &result) const override;
@@ -33,6 +45,12 @@ public:
3345
JS::MutableHandle<mozilla::Maybe<JS::PropertyDescriptor>> desc
3446
) const override;
3547

48+
/**
49+
* @brief Handles python object reference count when JS Proxy object is finalized
50+
*
51+
* @param gcx pointer to JS::GCContext
52+
* @param proxy the proxy object being finalized
53+
*/
3654
void finalize(JS::GCContext *gcx, JSObject *proxy) const override;
3755
};
3856

0 commit comments

Comments
 (0)