| 187 | } |
| 188 | |
| 189 | int JSObjectProxyMethodDefinitions::JSObjectProxy_assign(JSObjectProxy *self, PyObject *key, PyObject *value) |
| 190 | { |
| 191 | JS::RootedId id(GLOBAL_CX); |
| 192 | if (!keyToId(key, &id)) { // invalid key |
| 193 | PyErr_SetString(PyExc_AttributeError, "JSObjectProxy property name must be of type str or int"); |
| 194 | return -1; |
| 195 | } |
| 196 | |
| 197 | assignKeyValue(self, key, id, value); |
| 198 | |
| 199 | return 0; |
| 200 | } |
| 201 | |
| 202 | PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_richcompare(JSObjectProxy *self, PyObject *other, int op) |
| 203 | { |
nothing calls this directly
no test coverage detected