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 missing variable declarations #1599

Merged
merged 3 commits into from
Jan 24, 2017
Merged

Fix missing variable declarations #1599

merged 3 commits into from
Jan 24, 2017

Conversation

robertbrignull
Copy link
Contributor

This PR adds the var keyword to three variable declarations that were missing it and implicitly declaring global variables. Note that actually in all of the cases there's a similar function nearby that does use a local variable. Also none of these changes will change the semantics of the functions.

I noticed this because when in 'use strict' mode all of these lines will cause errors saying the variable in question is not defined. This is a problem because webpack will by default apply strict mode and this is the method of distribution that users are recommended to use.

@ericvergnaud
Copy link
Contributor

ericvergnaud commented Jan 11, 2017 via email

@parrt parrt added this to the 4.6.1 milestone Jan 24, 2017
@parrt parrt merged commit 93f9167 into antlr:master Jan 24, 2017
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.

3 participants