diff --git a/src/parser/statement.js b/src/parser/statement.js index b3d7e1a28b..bdf7729f48 100644 --- a/src/parser/statement.js +++ b/src/parser/statement.js @@ -177,7 +177,7 @@ export default class StatementParser extends ExpressionParser { // special error for the common case of @dec export class if (!allowExport && this.match(tt._export)) { - this.raise(this.state.start, "Using the export keyword between decorators and class is disallowed. Please use `export @dec class` instead"); + this.raise(this.state.start, "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead"); } if (!this.match(tt._class)) { diff --git a/test/fixtures/experimental/decorators-2/no-export-decorators-on-class/options.json b/test/fixtures/experimental/decorators-2/no-export-decorators-on-class/options.json index 4c5c609080..a2ae8cf036 100644 --- a/test/fixtures/experimental/decorators-2/no-export-decorators-on-class/options.json +++ b/test/fixtures/experimental/decorators-2/no-export-decorators-on-class/options.json @@ -1,4 +1,4 @@ { "sourceType": "module", - "throws": "Using the export keyword between decorators and class is disallowed. Please use `export @dec class` instead (2:0)" + "throws": "Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead (2:0)" }