| 33 | } |
| 34 | |
| 35 | bool idToIndex(JSContext *cx, JS::HandleId id, Py_ssize_t *index) { |
| 36 | if (id.isInt()) { // int-like strings have already been automatically converted to ints |
| 37 | *index = id.toInt(); |
| 38 | return true; |
| 39 | } else { |
| 40 | return false; // fail |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | bool PyBaseProxyHandler::getPrototypeIfOrdinary(JSContext *cx, JS::HandleObject proxy, |
| 45 | bool *isOrdinary, |
no outgoing calls
no test coverage detected