|
4 | 4 | public static class Messages |
5 | 5 | { |
6 | 6 | public const string AsyncFunctionInSingleStatementContext = "Async functions can only be declared at the top level or inside a block."; |
7 | | - public const string BadImportCallArity = "Unexpected token"; |
8 | 7 | public const string BadGetterArity = "Getter must not have any formal parameters"; |
9 | 8 | public const string BadSetterArity = "Setter must have exactly one formal parameter"; |
10 | 9 | public const string BadSetterRestParameter = "Setter function argument must not be a rest parameter"; |
@@ -40,32 +39,35 @@ public static class Messages |
40 | 39 | public const string MultipleDefaultsInSwitch = "More than one default clause in switch statement"; |
41 | 40 | public const string NewlineAfterThrow = "Illegal newline after throw"; |
42 | 41 | public const string NoAsAfterImportNamespace = "Unexpected token"; |
43 | | - public const string NoCatchOrFinally = "Missing catch or finally after try"; |
44 | | - public const string NumericSeperatorOneUnderscore = "Numeric separator must be exactly one underscore"; |
45 | | - public const string NumericSeperatorNotAllowedHere = "Numeric separator is not allowed here"; |
| 42 | + public const string NoCatchOrFinally = "Missing catch or finally after try"; |
| 43 | + public const string NumericSeparatorAfterLeadingZero = "Numeric separator can not be used after leading 0"; |
| 44 | + public const string NumericSeparatorNotAllowedHere = "Numeric separator is not allowed here"; |
| 45 | + public const string NumericSeparatorOneUnderscore = "Numeric separator must be exactly one underscore"; |
46 | 46 | public const string ParameterAfterRestParameter = "Rest parameter must be last formal parameter"; |
47 | 47 | public const string PropertyAfterRestProperty = "Unexpected token"; |
48 | 48 | public const string Redeclaration = "{0} \"{1}\" has already been declared"; |
49 | | - public const string RegexLoneQuantifierBrackets = "Invalid regular expression: Lone quantifier brackets"; |
50 | 49 | public const string RegexIncompleteQuantifier = "Invalid regular expression: Incomplete quantifier"; |
51 | | - public const string RegexUnterminatedGroup = "Invalid regular expression: Unterminated group"; |
52 | | - public const string RegexUnterminatedCharacterClass = "Invalid regular expression: Unterminated character class"; |
| 50 | + public const string RegexLoneQuantifierBrackets = "Invalid regular expression: Lone quantifier brackets"; |
53 | 51 | public const string RegexUnmatchedOpenParen = "Invalid regular expression: Unmatched ')'"; |
| 52 | + public const string RegexUnterminatedCharacterClass = "Invalid regular expression: Unterminated character class"; |
| 53 | + public const string RegexUnterminatedGroup = "Invalid regular expression: Unterminated group"; |
54 | 54 | public const string StaticPrototype = "Classes may not have static property named prototype"; |
55 | 55 | public const string StrictCatchVariable = "Catch variable may not be eval or arguments in strict mode"; |
| 56 | + public const string StrictDecimalWithLeadingZero = "Decimals with leading zeros are not allowed in strict mode."; |
56 | 57 | public const string StrictDelete = "Delete of an unqualified identifier in strict mode."; |
57 | 58 | public const string StrictFunction = "In strict mode code, functions can only be declared at top level or inside a block"; |
58 | 59 | public const string StrictFunctionName = "Function name may not be eval or arguments in strict mode"; |
59 | 60 | public const string StrictLHSAssignment = "Assignment to eval or arguments is not allowed in strict mode"; |
60 | 61 | public const string StrictLHSPostfix = "Postfix increment/decrement may not have eval or arguments operand in strict mode"; |
61 | 62 | public const string StrictLHSPrefix = "Prefix increment/decrement may not have eval or arguments operand in strict mode"; |
62 | 63 | public const string StrictModeWith = "Strict mode code may not include a with statement"; |
| 64 | + public const string StrictOctalEscape = "Octal escape sequences are not allowed in strict mode."; |
63 | 65 | public const string StrictOctalLiteral = "Octal literals are not allowed in strict mode."; |
64 | 66 | public const string StrictParamName = "Parameter name eval or arguments is not allowed in strict mode"; |
65 | 67 | public const string StrictReservedWord = "Use of future reserved word in strict mode"; |
66 | 68 | public const string StrictVarName = "Variable name may not be eval or arguments in strict mode"; |
67 | | - public const string TemplateOctalLiteral = "Octal literals are not allowed in template strings."; |
68 | 69 | public const string TemplateEscape89 = "\\8 and \\9 are not allowed in template strings."; |
| 70 | + public const string TemplateOctalLiteral = "Octal literals are not allowed in template strings."; |
69 | 71 | public const string UnexpectedEOS = "Unexpected end of input"; |
70 | 72 | public const string UnexpectedIdentifier = "Unexpected identifier"; |
71 | 73 | public const string UnexpectedNumber = "Unexpected number"; |
|
0 commit comments