mirror of
https://github.com/morluto/rea.git
synced 2026-12-03 13:41:17 -05:00
fix(python): walk slice members in the code hashability stack
The key resolver followed slice members, but the explicit-stack hashability walk skipped them, so a code object reached through a slice constant started a recursive hashability check. A 3,000-link slice-wrapped TYPE_REF code chain overflowed the JavaScript stack. Push slice members onto the same explicit stack as tuple and frozenset members. Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
This commit is contained in:
@@ -1413,7 +1413,9 @@ class MarshalReader {
|
||||
malformed("Code object is missing equality material.")
|
||||
).constsTuple,
|
||||
]
|
||||
: value.kind === "tuple" || value.kind === "frozenset"
|
||||
: value.kind === "tuple" ||
|
||||
value.kind === "frozenset" ||
|
||||
value.kind === "slice"
|
||||
? value.items
|
||||
: [];
|
||||
gray.add(identity);
|
||||
|
||||
Reference in New Issue
Block a user