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

Method defineProperty

src/PyDictProxyHandler.cc:99–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99bool PyDictProxyHandler::defineProperty(JSContext *cx, JS::HandleObject proxy,
100 JS::HandleId id,
101 JS::Handle<JS::PropertyDescriptor> desc,
102 JS::ObjectOpResult &result) const {
103 // Block direct `Object.defineProperty` since we already have the `set` method
104 return result.failInvalidDescriptor();
105}
106
107bool PyDictProxyHandler::getBuiltinClass(JSContext *cx, JS::HandleObject proxy,
108 js::ESClass *cls) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected