fix(@babel/parser): fix tokenizer context update code (#13422)
* fix(`@babel/parser`): fix `_function` update code * fmt
This commit is contained in:
parent
f6f37fb8cd
commit
56db172b0e
@ -107,7 +107,7 @@ tt._function.updateContext = tt._class.updateContext = function (prevType) {
|
||||
!(prevType === tt._return && this.hasPrecedingLineBreak()) &&
|
||||
!(
|
||||
(prevType === tt.colon || prevType === tt.braceL) &&
|
||||
this.curContext() === types.b_stat
|
||||
this.curContext() === types.braceStatement
|
||||
)
|
||||
) {
|
||||
this.state.context.push(types.functionExpression);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user