Skip to content

Commit 5267395

Browse files
committed
chore: suppress flow error
1 parent ab1fc04 commit 5267395

File tree

1 file changed

+3
-0
lines changed
  • packages/babel-parser/src/tokenizer

1 file changed

+3
-0
lines changed

packages/babel-parser/src/tokenizer/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,9 @@ export default class Tokenizer extends ParserErrors {
500500

501501
replaceToken(type: TokenType): void {
502502
this.state.type = type;
503+
// the prevType of updateContext is required
504+
// only when the new type is tt.slash/tt.jsxTagEnd
505+
// $FlowIgnore
503506
this.updateContext();
504507
}
505508

0 commit comments

Comments
 (0)