| 57 | } |
| 58 | |
| 59 | static bool iterable_next(JSContext *cx, unsigned argc, JS::Value *vp) { |
| 60 | JS::CallArgs args = JS::CallArgsFromVp(argc, vp); |
| 61 | JS::RootedObject thisObj(cx); |
| 62 | if (!args.computeThis(cx, &thisObj)) return false; |
| 63 | |
| 64 | PyObject *it = JS::GetMaybePtrFromReservedSlot<PyObject>(thisObj, PyObjectSlot); |
| 65 | |
| 66 | return iter_next(cx, args, it); |
| 67 | } |
| 68 | |
| 69 | static bool toPrimitive(JSContext *cx, unsigned argc, JS::Value *vp) { |
| 70 | JS::CallArgs args = JS::CallArgsFromVp(argc, vp); |
nothing calls this directly
no test coverage detected