Minor change in an error message
This commit is contained in:
parent
2c8fc75643
commit
c3b992e031
@ -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)) {
|
||||
|
||||
@ -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)"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user