Bug 1353706 – Update errordocs mapping to include more JS errors. r=Honza

This commit is contained in:
Florian Scholz 2017-04-06 06:17:00 -04:00
Родитель d12219f2e5
Коммит 3147efb1ca
2 изменённых файлов: 36 добавлений и 3 удалений

Просмотреть файл

@ -78,7 +78,7 @@ stubPreparedMessages.set("1 + @", new ConsoleMessage({
"type": "undefined"
},
"repeat": 1,
"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1479159921399,\"type\":\"result\",\"level\":\"error\",\"messageText\":\"SyntaxError: illegal character\",\"parameters\":{\"type\":\"undefined\"},\"repeatId\":null,\"stacktrace\":null,\"frame\":{\"source\":\"debugger eval code\",\"line\":1,\"column\":4},\"groupId\":null,\"userProvidedStyles\":null,\"notes\":null}",
"repeatId": "{\"id\":null,\"allowRepeating\":true,\"source\":\"javascript\",\"timeStamp\":1479159921399,\"type\":\"result\",\"level\":\"error\",\"messageText\":\"SyntaxError: illegal character\",\"parameters\":{\"type\":\"undefined\"},\"repeatId\":null,\"stacktrace\":null,\"frame\":{\"source\":\"debugger eval code\",\"line\":1,\"column\":4},\"groupId\":null,\"exceptionDocURL\":\"https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Illegal_character?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default\",\"userProvidedStyles\":null,\"notes\":null}",
"stacktrace": null,
"frame": {
"source": "debugger eval code",
@ -86,6 +86,7 @@ stubPreparedMessages.set("1 + @", new ConsoleMessage({
"column": 4
},
"groupId": null,
"exceptionDocURL": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Illegal_character?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default",
"userProvidedStyles": null,
"notes": null
}));
@ -174,6 +175,7 @@ stubPackets.set("1 + @", {
}
},
"exceptionMessage": "SyntaxError: illegal character",
"exceptionDocURL": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Errors/Illegal_character?utm_source=mozilla&utm_medium=firefox-console-errors&utm_campaign=default",
"frame": {
"source": "debugger eval code",
"line": 1,

Просмотреть файл

@ -50,13 +50,44 @@ const ErrorDocs = {
JSMSG_CURLY_AFTER_LIST: "Missing_curly_after_property_list",
JSMSG_DEPRECATED_FOR_EACH: "For-each-in_loops_are_deprecated",
JSMSG_STRICT_NON_SIMPLE_PARAMS: "Strict_Non_Simple_Params",
JSMSG_DEAD_OBJECT: "Dead_object",
JSMSG_NOT_NONNULL_OBJECT: "No_non-null_object",
JSMSG_IDSTART_AFTER_NUMBER: "Identifier_after_number",
JSMSG_DEPRECATED_EXPR_CLOSURE: "Deprecated_expression_closures",
JSMSG_ILLEGAL_CHARACTER: "Illegal_character",
JSMSG_BAD_REGEXP_FLAG: "Bad_regexp_flag",
JSMSG_INVALID_FOR_IN_DECL_WITH_INIT: "Invalid_for-in_initializer",
JSMSG_CANT_REDEFINE_PROP: "Cant_redefine_property",
JSMSG_COLON_AFTER_ID: "Missing_colon_after_property_id",
JSMSG_IN_NOT_OBJECT: "in_operator_no_object",
JSMSG_CURLY_AFTER_BODY: "Missing_curly_after_function_body",
JSMSG_NAME_AFTER_DOT: "Missing_name_after_dot_operator",
JSMSG_DEPRECATED_OCTAL: "Deprecated_octal",
JSMSG_PAREN_AFTER_COND: "Missing_parenthesis_after_condition",
JSMSG_JSON_CYCLIC_VALUE: "Cyclic_object_value",
JSMSG_NO_VARIABLE_NAME: "No_variable_name",
JSMSG_UNNAMED_FUNCTION_STMT: "Unnamed_function_statement",
JSMSG_CANT_DEFINE_PROP_OBJECT_NOT_EXTENSIBLE:
"Cant_define_property_object_not_extensible",
JSMSG_TYPED_ARRAY_BAD_ARGS: "Typed_array_invalid_arguments",
JSMSG_GETTER_ONLY: "Getter_only",
JSMSG_INVALID_DATE: "Invalid_date",
JSMSG_DEPRECATED_STRING_METHOD: "Deprecated_String_generics",
JSMSG_DEPRECATED_TOLOCALEFORMAT: "Deprecated_toLocaleFormat",
JSMSG_RESERVED_ID: "Reserved_identifier",
JSMSG_BAD_CONST_ASSIGN: "Invalid_const_assignment",
JSMSG_BAD_CONST_DECL: "Missing_initializer_in_const",
JSMSG_OF_AFTER_FOR_LOOP_DECL: "Invalid_for-of_initializer",
JSMSG_BAD_URI: "Malformed_URI",
JSMSG_DEPRECATED_DELETE_OPERAND: "Delete_in_strict_mode",
JSMSG_MISSING_FORMAL: "Missing_formal_parameter",
};
const MIXED_CONTENT_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/Mixed_content";
const TRACKING_PROTECTION_LEARN_MORE = "https://developer.mozilla.org/Firefox/Privacy/Tracking_Protection";
const INSECURE_PASSWORDS_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/Insecure_passwords";
const PUBLIC_KEY_PINS_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/Public_Key_Pinning";
const STRICT_TRANSPORT_SECURITY_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/HTTP_strict_transport_security";
const PUBLIC_KEY_PINS_LEARN_MORE = "https://developer.mozilla.org/en-US/docs/Web/HTTP/Public_Key_Pinning";
const STRICT_TRANSPORT_SECURITY_LEARN_MORE = "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security";
const WEAK_SIGNATURE_ALGORITHM_LEARN_MORE = "https://developer.mozilla.org/docs/Web/Security/Weak_Signature_Algorithm";
const MIME_TYPE_MISMATCH_LEARN_MORE = "https://developer.mozilla.org/docs/Web/HTTP/Headers/X-Content-Type-Options";
const ErrorCategories = {