[Pkg-javascript-commits] [node-lexical-scope] 37/83: property test fixed
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 15 09:45:49 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-lexical-scope.
commit f5a057e2f14280cf3027049b28471d0920a8f6af
Author: James Halliday <mail at substack.net>
Date: Sat Mar 30 12:17:02 2013 -0700
property test fixed
---
index.js | 1 +
package.json | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index c44f060..1598750 100644
--- a/index.js
+++ b/index.js
@@ -32,6 +32,7 @@ module.exports = function (src) {
walk(function (node) {
if (node.type === 'Identifier'
&& lookup(node) === undefined) {
+ if (node.parent.type === 'Property') return;
if (node.parent.type === 'MemberExpression'
&& node.parent.property === node) return;
diff --git a/package.json b/package.json
index a2935b9..fa4e147 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "lexical-scope",
- "version": "0.0.8",
+ "version": "0.0.9",
"description": "detect global and local lexical identifiers from javascript source code",
"main": "index.js",
"dependencies": {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-lexical-scope.git
More information about the Pkg-javascript-commits
mailing list