fix(javascript): retain read proof across inactive destructuring defaults (#12613)

fix(javascript): retain destructuring proof across inactive defaults
This commit is contained in:
morluto
2026-11-20 00:48:03 +00:00
committed by GitHub
parent f1ef301f36
commit c1de510702
4 changed files with 73 additions and 12 deletions
@@ -91,7 +91,7 @@ const semanticArrayIteratorMayHaveReturnAt = (
ambientPathMayObserveAt(state, pattern, path, "contents"),
);
const isLexicalPatternDeclaration = (
export const isLexicalPatternDeclaration = (
owner: t.Node | undefined,
state: JavaScriptSemanticAnalysisState,
): owner is t.VariableDeclarator => {