Skip to content

Commit

Permalink
chore: suppress flow error
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Oct 28, 2021
1 parent 49e1ce8 commit 50f3425
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/babel-parser/src/tokenizer/index.js
Expand Up @@ -500,6 +500,9 @@ export default class Tokenizer extends ParserErrors {

replaceToken(type: TokenType): void {
this.state.type = type;
// the prevType of updateContext is required
// only when the new type is tt.slash/tt.jsxTagEnd
// $FlowIgnore
this.updateContext();
}

Expand Down

0 comments on commit 50f3425

Please sign in to comment.