Skip to content

Add test to check whether TopLevelVarScopedDeclarations is called recursively#4913

Open
G-Lee1031 wants to merge 2 commits intotc39:mainfrom
G-Lee1031:toplevelvarscopeddeclaratoins
Open

Add test to check whether TopLevelVarScopedDeclarations is called recursively#4913
G-Lee1031 wants to merge 2 commits intotc39:mainfrom
G-Lee1031:toplevelvarscopeddeclaratoins

Conversation

@G-Lee1031
Copy link
Contributor

@G-Lee1031 G-Lee1031 commented Feb 9, 2026

Hello.
This PR checks whether TopLevelVarScopedDeclarations is called recursively when |Statement| is Statement : LabelledStatement

To do so, I implemented assert.sameValue(x, undefined); before outer: var x; to ensure that the declaration of x is correctly recognized and hoisted during the instantiation phase.

@G-Lee1031 G-Lee1031 requested a review from a team as a code owner February 9, 2026 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants