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

Method defineProperty

src/PyObjectProxyHandler.cc:188–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188bool PyObjectProxyHandler::defineProperty(JSContext *cx, JS::HandleObject proxy,
189 JS::HandleId id,
190 JS::Handle<JS::PropertyDescriptor> desc,
191 JS::ObjectOpResult &result) const {
192 // Block direct `Object.defineProperty` since we already have the `set` method
193 return result.failInvalidDescriptor();
194}
195
196bool PyObjectProxyHandler::getBuiltinClass(JSContext *cx, JS::HandleObject proxy,
197 js::ESClass *cls) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected