Skip to content

Commit

Permalink
Fix: Stop path analyzer on unknown nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyavolodin committed May 15, 2020
1 parent 82a448a commit fd19e6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/linter/code-path-analysis/code-path-analyzer.js
Expand Up @@ -153,6 +153,10 @@ function isIdentifierReference(node) {
*/
function forwardCurrentToHead(analyzer, node) {
const codePath = analyzer.codePath;

if (!codePath) {
return;
}
const state = CodePath.getState(codePath);
const currentSegments = state.currentSegments;
const headSegments = state.headSegments;
Expand Down

0 comments on commit fd19e6a

Please sign in to comment.