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

Freeze option incorrectly catches assignments to local vars #1600

Closed
kangax opened this issue Apr 1, 2014 · 0 comments · Fixed by chauncey-garrett/dotfiles#15 · May be fixed by ajesse11x/cjdns#1
Closed

Freeze option incorrectly catches assignments to local vars #1600

kangax opened this issue Apr 1, 2014 · 0 comments · Fixed by chauncey-garrett/dotfiles#15 · May be fixed by ajesse11x/cjdns#1
Labels

Comments

@kangax
Copy link
Contributor

kangax commented Apr 1, 2014

With freeze option:

(function(){
  function Array() { }
  Array.prototype.foo = 1;
})();

incorrectly reports it as overwriting native Array.

nicolo-ribaudo added a commit to nicolo-ribaudo/jshint that referenced this issue Dec 7, 2015
Don't warn when the prototype of a local variable
named as a native object is modified.

Fixes jshintgh-1600
jugglinmike pushed a commit to jugglinmike/jshint that referenced this issue Sep 4, 2016
Don't warn when the prototype of a local variable
named as a native object is modified.

Fixes jshintgh-1600
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants