Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoCorrect files/zh-cn/web/javascript/reference/errors/ #5978

Merged
merged 1 commit into from
May 28, 2022

Conversation

huacnlee
Copy link
Contributor

No description provided.

@huacnlee huacnlee requested a review from a team as a code owner May 28, 2022 12:56
@huacnlee huacnlee requested review from irvin and removed request for a team May 28, 2022 12:56
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label May 28, 2022
@huacnlee huacnlee mentioned this pull request May 28, 2022
@github-actions
Copy link
Contributor

Preview URLs

Flaws

Note! 29 documents with no flaws that don't need to be listed. 🎉

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Deprecated_source_map_pragma
Title: SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
on GitHub
Flaw count: 5

  • macros:
    • `/home/runner/work/translated-content/translated-content/mdn/content/node_modules/@mdn/yari/kumascript/macros/Compat.ejs:1

1| <%
2| /*
3|
4| Retrieves MDN compat data for a given feature

No first query argument or 'browser-compat' front-matter value passed`

  • broken_links:
    • Is currently http:// but can become https://
    • Can't resolve /en-US/docs/Tools/Debugger/How_to/Use_a_source_map
    • Is currently http:// but can become https://
  • translation_differences:
    • Differences in the important macros (1 in common of 2 possible)

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_assignment_left-hand_side
Title: ReferenceError: invalid assignment left-hand side
on GitHub
Flaw count: 4

  • broken_links:
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback
    • Can use the English (en-US) link as a fallback

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Identifier_after_number
Title: SyntaxError: identifier starts immediately after numeric literal
on GitHub
Flaw count: 1

  • broken_links:
    • Anchor not lowercase

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_defined
Title: ReferenceError: "x" is not defined
on GitHub
Flaw count: 2

  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Unterminated_string_literal
Title: SyntaxError: unterminated string literal
on GitHub
Flaw count: 5

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/String redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String
  • broken_links:
    • Can't resolve https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String#Escape_notation
    • Can't resolve https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Arithmetic_Operators#Addition
    • Can't resolve https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals
    • Can't resolve https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_bracket_after_list
Title: SyntaxError: missing ] after element list
on GitHub
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_a_function
Title: TypeError: "x" is not a function
on GitHub
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/For-each-in_loops_are_deprecated
Title: Warning: JavaScript 1.6's for-each-in loops are deprecated
on GitHub
Flaw count: 7

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Statements/for_each...in does not exist
    • /zh-CN/docs/Web/JavaScript/Reference/Statements/for_each...in does not exist
    • /zh-CN/docs/Web/JavaScript/Reference/Statements/for_each...in does not exist
    • /zh-CN/docs/Web/JavaScript/Reference/Statements/for_each...in does not exist
    • /zh-CN/docs/Web/JavaScript/Reference/Statements/for_each...in does not exist
    • and 2 more flaws omitted

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/is_not_iterable
Title: TypeError: 'x' is not iterable
on GitHub
Flaw count: 9

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array
    • /zh-CN/docs/Web/JavaScript/Reference/String redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String
    • /zh-CN/docs/Web/JavaScript/Reference/Function redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Function
  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
    • Anchor not lowercase
  • bad_pre_tags:
    • <pre><code>CODE can be just <pre>CODE

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_a_constructor
Title: TypeError: "x" is not a constructor
on GitHub
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/String redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array
    • /zh-CN/docs/Web/JavaScript/Reference/SIMD does not exist
  • broken_links:
    • Can't resolve /en-US/docs/Mozilla/JavaScript_code_modules/Promise.jsm/Promise#Constructor

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_array_length
Title: RangeError: invalid array length
on GitHub
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Deprecated_toLocaleFormat
Title: Warning: Date.prototype.toLocaleFormat is deprecated
on GitHub
Flaw count: 6

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat does not exist
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat does not exist
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat
    • /zh-CN/docs/Web/JavaScript/Reference/Date redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date
    • /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleFormat does not exist
    • and 1 more flaws omitted

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Dead_object
Title: TypeError: can't access dead object
on GitHub
Flaw count: 5

  • broken_links:
    • Can't resolve /en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils.getWeakReference
    • Can't resolve /en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils
    • Can't resolve /en-US/docs/Extensions/Common_causes_of_memory_leaks_in_extensions
    • Can't resolve /en-US/docs/Mozilla/Tech/XPCOM/Language_Bindings/Components.utils
    • Can't resolve /en-US/docs/Mozilla/Zombie_compartments

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Stmt_after_return
Title: Warning: unreachable code after return statement
on GitHub
Flaw count: 2

  • bad_pre_tags:
    • <pre><code>CODE can be just <pre>CODE
    • <pre><code>CODE can be just <pre>CODE

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Equal_as_assign
Title: SyntaxError: test for equality (==) mistyped as assignment (=)?
on GitHub
Flaw count: 1

  • broken_links:
    • Can't resolve /en-US/docs/Web/JavaScript/Reference/Operators/Comparison_Operators

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value
Title: TypeError: Reduce of empty array with no initial value
on GitHub
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array
    • /zh-CN/docs/Web/JavaScript/Reference/Array redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Cant_assign_to_property
Title: TypeError: can't assign to property "x" on "y": not an object
on GitHub
Flaw count: 2

  • macros:
    • /zh-CN/docs/Glossary/property/JavaScript does not exist but fell back to /en-US/docs/Glossary/property/JavaScript
    • /zh-CN/docs/Web/JavaScript/Reference/String redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/String

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_octal
Title: SyntaxError: "x" is not a legal ECMA-262 octal constant
on GitHub
Flaw count: 2

  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_semicolon_before_statement
Title: SyntaxError: missing ; before statement
on GitHub
Flaw count: 2

  • broken_links:
    • Anchor not lowercase
    • Anchor not lowercase

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Redeclared_parameter
Title: SyntaxError: redeclaration of formal parameter "x"
on GitHub
Flaw count: 1

  • broken_links:
    • Can't resolve /en-US/docs/Web/JavaScript/Guide/Grammar_and_Types#Declarations

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_regexp_flag
Title: SyntaxError: invalid regular expression flag "x"
on GitHub
Flaw count: 3

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/RegExp redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/RegExp
  • broken_links:
    • Can't resolve https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Regular_Expressions
    • Is currently http:// but can become https://

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Too_much_recursion
Title: InternalError: too much recursion
on GitHub
Flaw count: 1

  • broken_links:
    • Anchor not lowercase

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_date
Title: RangeError: invalid date
on GitHub
Flaw count: 2

  • macros:
    • /zh-CN/docs/Web/JavaScript/Reference/Date redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date
    • /zh-CN/docs/Web/JavaScript/Reference/Date redirects to /zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Date

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Reserved_identifier
Title: SyntaxError: "x" is a reserved identifier
on GitHub
Flaw count: 2

  • broken_links:
    • Anchor not lowercase
    • Is currently http:// but can become https://

External URLs

URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Deprecated_source_map_pragma
Title: SyntaxError: Using //@ to indicate sourceURL pragmas is deprecated. Use //# instead
on GitHub


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_assignment_left-hand_side
Title: ReferenceError: invalid assignment left-hand side
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Property_access_denied
Title: Error: Permission denied to access property "x"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Undeclared_var
Title: ReferenceError: assignment to undeclared variable "x"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Negative_repetition_count
Title: RangeError: repeat count must be non-negative
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Identifier_after_number
Title: SyntaxError: identifier starts immediately after numeric literal
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_return_or_yield
Title: SyntaxError: return not in function
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/No_properties
Title: TypeError: "x" has no properties
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_defined
Title: ReferenceError: "x" is not defined
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Malformed_formal_parameter
Title: SyntaxError: Malformed formal parameter
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Unterminated_string_literal
Title: SyntaxError: unterminated string literal
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Deprecated_caller_or_arguments_usage
Title: ReferenceError: deprecated caller or arguments usage
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Malformed_URI
Title: URIError: malformed URI sequence
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_a_codepoint
Title: RangeError: argument is not a valid code point
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/JSON_bad_parse
Title: SyntaxError: JSON.parse: bad parsing
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Undefined_prop
Title: ReferenceError: reference to undefined property "x"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Unexpected_token
Title: SyntaxError: Unexpected token
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Strict_Non_Simple_Params
Title: SyntaxError: "use strict" not allowed in function with non-simple parameters
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Cant_access_property
Title: TypeError: can't access property "x" of "y"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_curly_after_property_list
Title: SyntaxError: missing } after property list
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Array_sort_argument
Title: TypeError: invalid Array.prototype.sort argument
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Unnamed_function_statement
Title: SyntaxError: function statement requires a name
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_bracket_after_list
Title: SyntaxError: missing ] after element list
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_const_assignment
Title: TypeError: invalid assignment to const "x"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_a_function
Title: TypeError: "x" is not a function
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Illegal_character
Title: SyntaxError: illegal character
on GitHub


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/For-each-in_loops_are_deprecated
Title: Warning: JavaScript 1.6's for-each-in loops are deprecated
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/is_not_iterable
Title: TypeError: 'x' is not iterable
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Not_a_constructor
Title: TypeError: "x" is not a constructor
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_radix
Title: RangeError: radix must be an integer
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_array_length
Title: RangeError: invalid array length
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Deprecated_toLocaleFormat
Title: Warning: Date.prototype.toLocaleFormat is deprecated
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Dead_object
Title: TypeError: can't access dead object
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Stmt_after_return
Title: Warning: unreachable code after return statement
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Equal_as_assign
Title: SyntaxError: test for equality (==) mistyped as assignment (=)?
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_formal_parameter
Title: SyntaxError: missing formal parameter
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/More_arguments_needed
Title: TypeError: More arguments needed
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Unexpected_type
Title: TypeError: "x" is (not) "y"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Reduce_of_empty_array_with_no_initial_value
Title: TypeError: Reduce of empty array with no initial value
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Cant_assign_to_property
Title: TypeError: can't assign to property "x" on "y": not an object
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Precision_range
Title: RangeError: precision is out of range
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_octal
Title: SyntaxError: "x" is not a legal ECMA-262 octal constant
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Read-only
Title: TypeError: "x" is read-only
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Cyclic_object_value
Title: TypeError: cyclic object value
on GitHub


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_semicolon_before_statement
Title: SyntaxError: missing ; before statement
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Missing_parenthesis_after_argument_list
Title: SyntaxError: missing ) after argument list
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Resulting_string_too_large
Title: RangeError: repeat count must be less than infinity
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Redeclared_parameter
Title: SyntaxError: redeclaration of formal parameter "x"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Bad_regexp_flag
Title: SyntaxError: invalid regular expression flag "x"
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_for-of_initializer
Title: SyntaxError: a declaration in the head of a for-of loop can't have an initializer
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Too_much_recursion
Title: InternalError: too much recursion
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Invalid_date
Title: RangeError: invalid date
on GitHub

No new external URLs


URL: /zh-CN/docs/Web/JavaScript/Reference/Errors/Reserved_identifier
Title: SyntaxError: "x" is a reserved identifier
on GitHub

No new external URLs

@irvin irvin merged commit 82149c2 into mdn:main May 28, 2022
@huacnlee huacnlee deleted the fix-002-14 branch May 28, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants