MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / iterable_next

Function iterable_next

src/PyIterableProxyHandler.cc:59–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59static 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
69static bool toPrimitive(JSContext *cx, unsigned argc, JS::Value *vp) {
70 JS::CallArgs args = JS::CallArgsFromVp(argc, vp);

Callers

nothing calls this directly

Calls 1

iter_nextFunction · 0.85

Tested by

no test coverage detected