| 186 | } |
| 187 | |
| 188 | bool 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 | |
| 196 | bool PyObjectProxyHandler::getBuiltinClass(JSContext *cx, JS::HandleObject proxy, |
| 197 | js::ESClass *cls) const { |
nothing calls this directly
no outgoing calls
no test coverage detected