Skip to content

Commit

Permalink
Update packages/babel-parser/src/parser/statement.js
Browse files Browse the repository at this point in the history
Co-authored-by: Brian Ng <bng412@gmail.com>
  • Loading branch information
JLHwung and existentialism committed Aug 10, 2020
1 parent 8311e20 commit 24a4f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/statement.js
Expand Up @@ -1970,7 +1970,7 @@ export default class StatementParser extends ExpressionParser {
const currentContextDecorators = this.state.decoratorStack[
this.state.decoratorStack.length - 1
];
// If node.declration is a class, it will take all decorators in the current context.
// If node.declaration is a class, it will take all decorators in the current context.
// Thus we should throw if we see non-empty decorators here.
if (currentContextDecorators.length) {
throw this.raise(node.start, Errors.UnsupportedDecoratorExport);
Expand Down

0 comments on commit 24a4f69

Please sign in to comment.