| 97 | } |
| 98 | |
| 99 | bool 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 | |
| 107 | bool PyDictProxyHandler::getBuiltinClass(JSContext *cx, JS::HandleObject proxy, |
| 108 | js::ESClass *cls) const { |
nothing calls this directly
no outgoing calls
no test coverage detected