UNPKG

2.06 kBJavaScriptView Raw
1/**
2 * Copyright 2014 Shape Security, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License")
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17"use strict";
18
19var ErrorMessages = {
20 UNEXPECTED_TOKEN: "Unexpected token {0}",
21 UNEXPECTED_ILLEGAL_TOKEN: "Unexpected {0}",
22 UNEXPECTED_NUMBER: "Unexpected number",
23 UNEXPECTED_STRING: "Unexpected string",
24 UNEXPECTED_IDENTIFIER: "Unexpected identifier",
25 UNEXPECTED_RESERVED_WORD: "Unexpected reserved word",
26 UNEXPECTED_TEMPLATE: "Unexpected template",
27 UNEXPECTED_EOS: "Unexpected end of input",
28 UNEXPECTED_LINE_TERMINATOR: "Unexpected line terminator",
29 NEWLINE_AFTER_THROW: "Illegal newline after throw",
30 UNTERMINATED_REGEXP: "Invalid regular expression: missing /",
31 INVALID_REGEXP_FLAGS: "Invalid regular expression flags",
32 INVALID_LHS_IN_ASSIGNMENT: "Invalid left-hand side in assignment",
33 INVALID_LHS_IN_FOR_IN: "Invalid left-hand side in for-in",
34 INVALID_LHS_IN_FOR_OF: "Invalid left-hand side in for-of",
35 INVALID_UPDATE_OPERAND: "Increment/decrement target must be an identifier or member expression",
36 MULTIPLE_DEFAULTS_IN_SWITCH: "More than one default clause in switch statement",
37 NO_CATCH_OR_FINALLY: "Missing catch or finally after try",
38 ILLEGAL_RETURN: "Illegal return statement",
39 ILLEGAL_ARROW_FUNCTION_PARAMS: "Illegal arrow function parameter list",
40 INVALID_VAR_INIT_FOR_IN: "Invalid variable declaration in for-in statement",
41 INVALID_VAR_INIT_FOR_OF: "Invalid variable declaration in for-of statement",
42 ILLEGAL_PROPERTY: "Illegal property initializer"
43};
44exports.ErrorMessages = ErrorMessages;
\No newline at end of file