Fix type error (#7752)

This commit is contained in:
Andy 2018-04-18 12:31:15 -07:00 committed by Henry Zhu
parent 3299086955
commit 4b97e837ea

View File

@ -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.",
);