Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apps/oxlint/src-js/plugins/visitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,11 @@ export function finalizeCompiledVisitor(): VisitorState {

// Reset `visitPropsCache`.
// Setting these properties to `null` is not necessary for correctness, but it allows them to be garbage collected.
// `specificity` is only an SMI (stored inline), and is overwritten in `addVisitorToCompiled`, so no need to reset it.
for (let i = visitPropsCacheNextIndex - 1; i >= 0; i--) {
visitPropsCache[i].fn = null;
visitPropsCache[i].selectorStr = null;
const visitProp = visitPropsCache[i];
visitProp.fn = null;
visitProp.selectorStr = null;
}
visitPropsCacheNextIndex = 0;

Expand Down
Loading