Permalink
Browse files

fix for implicit assignment

  • Loading branch information...
1 parent f6ce4b2 commit a2c7707c865597af2204f11409e1c7ac46e34a83 @substack committed Mar 31, 2013
Showing with 4 additions and 2 deletions.
  1. +3 −1 index.js
  2. +1 −1 package.json
View
@@ -42,7 +42,9 @@ module.exports = function (src) {
var isLeft0 = node.parent.left.type === 'MemberExpression'
&& node.parent.left.object === node.name
;
- var isLeft1 = node.parent.left.type === 'Identifier';
+ var isLeft1 = node.parent.left.type === 'Identifier'
+ && node.parent.left.name === node.name
+ ;
if (isLeft0 || isLeft1) {
exported[node.name] = keyOf(node).length;
}
View
@@ -1,6 +1,6 @@
{
"name": "lexical-scope",
- "version": "0.0.9",
+ "version": "0.0.10",
"description": "detect global and local lexical identifiers from javascript source code",
"main": "index.js",
"dependencies": {

0 comments on commit a2c7707

Please sign in to comment.