Skip to content

Commit

Permalink
Bring back if check
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 6, 2021
1 parent 2e85d14 commit 5601f32
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eslint/babel-eslint-parser/src/convert/convertTokens.js
Expand Up @@ -184,8 +184,10 @@ function convertToken(token, source) {
token.type = "PrivateIdentifier";
}

// Acorn does not have rightAssociative
delete token.type.rightAssociative;
if (typeof token.type !== "string") {
// Acorn does not have rightAssociative
delete token.type.rightAssociative;
}

return token;
}
Expand Down

0 comments on commit 5601f32

Please sign in to comment.