Comparing version 0.0.2 to 0.0.3
@@ -61,6 +61,7 @@ /* | ||
VERSION, | ||
hasOwnProperty, | ||
scope, | ||
scopes; | ||
VERSION = '0.0.2'; | ||
VERSION = '0.0.3'; | ||
@@ -177,2 +178,9 @@ function assert(cond, text) { | ||
hasOwnProperty = (function () { | ||
var pred = Object.prototype.hasOwnProperty; | ||
return function hasOwnProperty(obj, name) { | ||
return pred.call(obj, name); | ||
}; | ||
}()); | ||
function traverse(top, visitor) { | ||
@@ -336,3 +344,3 @@ var worklist, leavelist, node, ret, current, current2, candidates, candidate, marker = {}; | ||
name = ref.identifier.name; | ||
if (this.set.hasOwnProperty(name)) { | ||
if (hasOwnProperty(this.set, name)) { | ||
variable = this.set[name]; | ||
@@ -361,3 +369,3 @@ variable.references.push(ref); | ||
name = node.name; | ||
if (!this.set.hasOwnProperty(name)) { | ||
if (!hasOwnProperty(this.set, name)) { | ||
variable = new Variable(name, this); | ||
@@ -364,0 +372,0 @@ variable.identifiers.push(node); |
@@ -6,3 +6,3 @@ { | ||
"main": "escope.js", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"engines": { | ||
@@ -9,0 +9,0 @@ "node": ">=0.4.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28200
639