fix(javascript): avoid argument limits when expanding escaped receivers

This commit is contained in:
Ysopwnable
2026-10-10 19:11:00 +08:00
committed by GitHub
parent 3cd80cbb88
commit bace2c5a4f
3 changed files with 38 additions and 3 deletions
@@ -343,7 +343,8 @@ export const collectSemanticMemberMutations = (
if (paths.has(pathKey)) continue;
paths.add(pathKey);
expanded.set(node, paths);
pending.push(...expandedValues(node, value.path, "escape"));
for (const reference of expandedValues(node, value.path, "escape"))
pending.push(reference);
}
}
const byPath = escapedLeaves.get(root) ?? new Map();