Skip to content

Commit 676ad7c

Browse files
improved naming
1 parent a424401 commit 676ad7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PyIterableProxyHandler.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ JSMethodDef PyIterableProxyHandler::iterable_methods[] = {
7272
// IterableIterator
7373

7474
enum {
75-
IterableIteratorSlotIteratedObject,
75+
IterableIteratorSlotIterableObject,
7676
IterableIteratorSlotCount
7777
};
7878

@@ -83,7 +83,7 @@ static bool iterator_next(JSContext *cx, unsigned argc, JS::Value *vp) {
8383
JS::RootedObject thisObj(cx);
8484
if (!args.computeThis(cx, &thisObj)) return false;
8585

86-
PyObject *it = JS::GetMaybePtrFromReservedSlot<PyObject>(thisObj, IterableIteratorSlotIteratedObject);
86+
PyObject *it = JS::GetMaybePtrFromReservedSlot<PyObject>(thisObj, IterableIteratorSlotIterableObject);
8787

8888
JS::RootedObject result(cx, JS_NewPlainObject(cx));
8989

@@ -189,7 +189,7 @@ static bool iterable_values(JSContext *cx, unsigned argc, JS::Value *vp) {
189189
if (!JS::Construct(cx, constructor_val, JS::HandleValueArray::empty(), &obj)) return false;
190190
if (!obj) return false;
191191

192-
JS::SetReservedSlot(obj, IterableIteratorSlotIteratedObject, JS::PrivateValue((void *)self));
192+
JS::SetReservedSlot(obj, IterableIteratorSlotIterableObject, JS::PrivateValue((void *)self));
193193

194194
args.rval().setObject(*obj);
195195
return true;

0 commit comments

Comments
 (0)