diff options
Diffstat (limited to 'tools/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js')
-rw-r--r-- | tools/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js b/tools/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js index 0147f686ac..6a5da5214c 100644 --- a/tools/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js +++ b/tools/node_modules/eslint/node_modules/eslint-scope/lib/referencer.js @@ -409,7 +409,7 @@ class Referencer extends esrecurse.Visitor { Program(node) { this.scopeManager.__nestGlobalScope(node); - if (this.scopeManager.__isNodejsScope()) { + if (this.scopeManager.isGlobalReturn()) { // Force strictness of GlobalScope to false when using node.js scope. this.currentScope().isStrict = false; |