[javascriptlint-commit] SF.net SVN: javascriptlint:[204] trunk/pyjsl/lint.py
Status: Beta
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2008-08-15 15:11:13
|
Revision: 204 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=204&view=rev Author: matthiasmiller Date: 2008-08-15 15:11:11 +0000 (Fri, 15 Aug 2008) Log Message: ----------- fix bug in variable declarations getting added to the wrong scope Modified Paths: -------------- trunk/pyjsl/lint.py Modified: trunk/pyjsl/lint.py =================================================================== --- trunk/pyjsl/lint.py 2008-08-15 14:55:20 UTC (rev 203) +++ trunk/pyjsl/lint.py 2008-08-15 15:11:11 UTC (rev 204) @@ -310,7 +310,7 @@ @visitation.visit('push', tok.VAR) def _push_var(self, node): for kid in node.kids: - _warn_or_declare(scope, kid.atom, node, report) + _warn_or_declare(scopes[-1], kid.atom, node, report) return scope_checks This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |