From 24a4f6991058dee27d00c58e205d6b7cd44e8631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Mon, 10 Aug 2020 12:38:59 -0400 Subject: [PATCH] Update packages/babel-parser/src/parser/statement.js Co-authored-by: Brian Ng --- packages/babel-parser/src/parser/statement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/babel-parser/src/parser/statement.js b/packages/babel-parser/src/parser/statement.js index e85756cef89d..ce0a8db4c4c5 100644 --- a/packages/babel-parser/src/parser/statement.js +++ b/packages/babel-parser/src/parser/statement.js @@ -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);