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

Fixes #3455 #3456

Closed
wants to merge 2 commits into from
Closed

Fixes #3455 #3456

wants to merge 2 commits into from

Conversation

stvcisco
Copy link
Contributor

[[FIX]] E012 TypeError accessing 'value' of undefined

Make sure that 'decl.first[0]' is defined before accessing its 'value' attribute.

No breaking changes.

Fixes #3455

Only issue error E012 if a variable name has been given in the for-loop
@coveralls
Copy link

coveralls commented Mar 27, 2020

Coverage Status

Coverage remained the same at 100.0% when pulling b7f6728 on stvcisco:patch-1 into b6c4518 on jshint:v2.11.0.

@jugglinmike
Copy link
Member

Thanks for taking the time to write a patch! As per the project's contribution guidelines, we prefer changes to be backed with tests. Do you have the bandwidth to add a test for this fix?

@stvcisco
Copy link
Contributor Author

test is added and ran both with and without the fix to assure it reported the problem without the change and runs cleanly with the change.

@jugglinmike
Copy link
Member

Great! Since this is a bug fix, I've merged this into the master branch directly, see commit 8884eb9. That will help us get it out to folks faster.

Thank you very much!

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.

None yet

3 participants