Skip to content

Conversation

sirbrillig
Copy link
Owner

In #189 we introduced special handling for variables used in else blocks, but since it didn't use the normal processing system, we broke respecting the existing options for ignoring undefined variables like allowUndefinedVariablesInFileScope, validUndefinedVariableNames, and validUndefinedVariableRegexp. This PR makes sure that the special handling respects those options.

Fixes #238

@sirbrillig sirbrillig merged commit 3fad284 into 2.10 Jul 6, 2021
@sirbrillig sirbrillig deleted the fix-valid-undefined-in-else branch July 6, 2021 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Property validUndefinedVariableNames is ignored inside else statement
1 participant