Fix type error (#7752)
This commit is contained in:
parent
3299086955
commit
4b97e837ea
@ -1425,7 +1425,7 @@ export default class StatementParser extends ExpressionParser {
|
||||
this.match(tt._const) ||
|
||||
this.match(tt._var)
|
||||
) {
|
||||
this.raise(
|
||||
return this.raise(
|
||||
this.state.start,
|
||||
"Only expressions, functions or classes are allowed as the `default` export.",
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user