Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
remove process.exit(1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysticatea committed Dec 25, 2017
1 parent db14da0 commit 11dce78
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/patch-eslint-scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,17 +347,12 @@ var escopeAnalyze = null;
module.exports = function(parserOptions) {
// Patch `Referencer.prototype` once.
if (!escope) {
try {
const modules = getModules();
monkeypatch(modules);

// Store to patch for each call.
escope = modules.escope;
escopeAnalyze = modules.escope.analyze;
} catch (err) {
console.error(err.stack);
process.exit(1);
}
}

// Patch `escope.analyze` based on the current parserOptions.
Expand All @@ -370,7 +365,6 @@ module.exports = function(parserOptions) {
(parserOptions.ecmaFeatures &&
parserOptions.ecmaFeatures.globalReturn) === true;

var results = escopeAnalyze.call(this, ast, opts);
return results;
return escopeAnalyze.call(this, ast, opts);
};
};

0 comments on commit 11dce78

Please sign in to comment.