Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix for of loop to check right hand side if left hand side is omitted expression. #48724

Closed
wants to merge 3 commits into from

Conversation

Copy link

@wannieman98 wannieman98 commented Apr 15, 2022

Fixes #48630

For the checkVariableLikeDeclaration function, instead of checking the right hand side of the element is valid only when the binding element is encountered. This fix will now also check if the right hand side of the for of loop is valid even if the variable of the left hand side is omitted expression.

@typescript-bot
Copy link
Collaborator

@typescript-bot typescript-bot commented Apr 15, 2022

It looks like you've sent a pull request to update our 'lib' files. These files aren't meant to be edited by hand, as they consist of last-known good states of the compiler and are generated from 'src/lib' or possibly our lib generator. Unless this is necessary, consider closing the pull request and sending a separate PR to update 'src/lib' or https://github.com/microsoft/TypeScript-DOM-lib-generator

@typescript-bot typescript-bot added For Backlog Bug lib update labels Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug lib update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants