fix(javascript): retain wide function fingerprint inventories (#10355)

This commit is contained in:
Kaoru0822 authored and GitHub committed 2026-11-13 06:16:36 -08:00
1 parent c4cec6373d
commit 5d046b9ad7
2 files changed
+102 -2

No files matched your search

@@ -250,7 +250,8 @@ export const createJavaScriptSemanticGraphProjection = (
unknownCeiling,
unknownsBefore + fileUnknownCeiling,
);
fingerprints.push(...(yield* projectFileSteps(file, ir, state, paths)));
for (const fingerprint of yield* projectFileSteps(file, ir, state, paths))
fingerprints.push(fingerprint);
// Nodes were dropped only if the budget actually blocked creation. A file
// that exactly fills its share ends with a zero budget without dropping
// anything, so the remaining budget alone cannot decide truncation.
@@ -427,7 +428,8 @@ export const createJavaScriptSemanticGraphProjection = (
for (const unknown of newUnknowns)
state.unknowns.set(unknown.unknown_id, unknown);
for (const root of projection.roots) state.roots.add(root);
fingerprints.push(...projection.fingerprints);
for (const fingerprint of projection.fingerprints)
fingerprints.push(fingerprint);
if (projection.nodesTruncated) {
truncatedFiles += 1;
noteSemanticCeilingReached(