From c3b992e0317215345e5dc735219590dd27c65996 Mon Sep 17 00:00:00 2001 From: Peeyush Kushwaha Date: Fri, 23 Jun 2017 22:04:35 +0530 Subject: [PATCH] Minor change in an error message --- src/parser/statement.js | 2 +- .../decorators-2/no-export-decorators-on-class/options.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)" }