Skip to content

Commit

Permalink
Minimize diff
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 10, 2021
1 parent 8e2fdde commit e5707a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/babel-parser/src/parser/expression.js
Expand Up @@ -1211,11 +1211,10 @@ export default class ExpressionParser extends LValParser {

if (pipeProposal) {
return this.parseTopicReference(pipeProposal);
} else {
throw this.unexpected();
}
}

// fall through
case tt.relational: {
if (this.state.value === "<") {
const lookaheadCh = this.input.codePointAt(this.nextTokenStart());
Expand All @@ -1224,7 +1223,6 @@ export default class ExpressionParser extends LValParser {
lookaheadCh === charCodes.greaterThan // Fragment <>
) {
this.expectOnePlugin(["jsx", "flow", "typescript"]);
break;
}
}
}
Expand Down

0 comments on commit e5707a2

Please sign in to comment.