We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1fc04 commit 5267395Copy full SHA for 5267395
packages/babel-parser/src/tokenizer/index.js
@@ -500,6 +500,9 @@ export default class Tokenizer extends ParserErrors {
500
501
replaceToken(type: TokenType): void {
502
this.state.type = type;
503
+ // the prevType of updateContext is required
504
+ // only when the new type is tt.slash/tt.jsxTagEnd
505
+ // $FlowIgnore
506
this.updateContext();
507
}
508
0 commit comments