hermes-eslint
Advanced tools
Comparing version 0.4.7 to 0.4.8
@@ -366,10 +366,18 @@ /** | ||
value: function __close(scopeManager) { | ||
var _this = this; | ||
var closeRef; | ||
if (this.__shouldStaticallyClose(scopeManager)) { | ||
closeRef = this.__staticCloseRef; | ||
closeRef = function closeRef(ref) { | ||
return _this.__staticCloseRef(ref); | ||
}; | ||
} else if (this.type !== ScopeType.Global) { | ||
closeRef = this.__dynamicCloseRef; | ||
closeRef = function closeRef(ref) { | ||
return _this.__dynamicCloseRef(ref); | ||
}; | ||
} else { | ||
closeRef = this.__globalCloseRef; | ||
closeRef = function closeRef(ref) { | ||
return _this.__globalCloseRef(ref); | ||
}; | ||
} // Try Resolving all references in this scope. | ||
@@ -380,3 +388,3 @@ | ||
var ref = this.__referencesLeftToResolve[i]; | ||
closeRef.call(this, ref); | ||
closeRef(ref); | ||
} | ||
@@ -614,11 +622,11 @@ | ||
function GlobalScope(scopeManager, block) { | ||
var _this; | ||
var _this2; | ||
_classCallCheck(this, GlobalScope); | ||
_this = _super.call(this, scopeManager, ScopeType.Global, null, block, false); | ||
_this2 = _super.call(this, scopeManager, ScopeType.Global, null, block, false); | ||
_defineProperty(_assertThisInitialized(_this), "implicit", void 0); | ||
_defineProperty(_assertThisInitialized(_this2), "implicit", void 0); | ||
_this.implicit = { | ||
_this2.implicit = { | ||
set: new Map(), | ||
@@ -628,3 +636,3 @@ variables: [], | ||
}; | ||
return _this; | ||
return _this2; | ||
} | ||
@@ -687,12 +695,12 @@ | ||
function FunctionExpressionNameScope(scopeManager, upperScope, block) { | ||
var _this2; | ||
var _this3; | ||
_classCallCheck(this, FunctionExpressionNameScope); | ||
_this2 = _super3.call(this, scopeManager, ScopeType.FunctionExpressionName, upperScope, block, false); | ||
_this3 = _super3.call(this, scopeManager, ScopeType.FunctionExpressionName, upperScope, block, false); | ||
_this2.__define(block.id, new FunctionNameDefinition(block)); | ||
_this3.__define(block.id, new FunctionNameDefinition(block)); | ||
_this2.functionExpressionScope = true; | ||
return _this2; | ||
_this3.functionExpressionScope = true; | ||
return _this3; | ||
} | ||
@@ -784,14 +792,14 @@ | ||
function FunctionScope(scopeManager, upperScope, block, isMethodDefinition) { | ||
var _this3; | ||
var _this4; | ||
_classCallCheck(this, FunctionScope); | ||
_this3 = _super8.call(this, scopeManager, ScopeType.Function, upperScope, block, isMethodDefinition); // section 9.2.13, FunctionDeclarationInstantiation. | ||
_this4 = _super8.call(this, scopeManager, ScopeType.Function, upperScope, block, isMethodDefinition); // section 9.2.13, FunctionDeclarationInstantiation. | ||
// NOTE Arrow functions never have an arguments objects. | ||
if (_this3.block.type !== Syntax.ArrowFunctionExpression) { | ||
_this3.__defineArguments(); | ||
if (_this4.block.type !== Syntax.ArrowFunctionExpression) { | ||
_this4.__defineArguments(); | ||
} | ||
return _this3; | ||
return _this4; | ||
} | ||
@@ -798,0 +806,0 @@ |
{ | ||
"name": "hermes-eslint", | ||
"version": "0.4.7", | ||
"version": "0.4.8", | ||
"description": "A custom parser for ESLint using the Hermes parser", | ||
@@ -17,4 +17,4 @@ "main": "dist/index.js", | ||
"estraverse": "^4.1.1", | ||
"hermes-parser": "0.4.7" | ||
"hermes-parser": "0.4.8" | ||
} | ||
} |
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
121259
2776
+ Addedhermes-parser@0.4.8(transitive)
- Removedhermes-parser@0.4.7(transitive)
Updatedhermes-parser@0.4.8