Skip to content

fix(zh-cn): update stale jsxref references#37067

Merged
yin1999 merged 2 commits into
mainfrom
zh-cn-stale-jsxref
Jul 17, 2026
Merged

fix(zh-cn): update stale jsxref references#37067
yin1999 merged 2 commits into
mainfrom
zh-cn-stale-jsxref

Conversation

@caugner

@caugner caugner commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Description

Update stale jsxref references in Chinese, Simplified (zh-CN) content:

  • De-link removed JavaScript features (Number.toInteger(), SIMD, TypedArray.prototype.move()) to inline code.
  • Fix a stale Intl/Segmenter/Segments argument to point at Intl/Segmenter/segment/Segments.

Motivation

Ensure jsxref references keep resolving once rari resolves macro arguments against an index of the current Web/JavaScript/Reference/* pages (mdn/rari#715) instead of probing candidate URLs and silently following redirects — which will otherwise surface these stale references as broken links.

Additional details

Related issues and pull requests

Part of #37059.
Related to mdn/rari#715.

Resolve `jsxref` macro arguments that no longer point at an existing
`Web/JavaScript/Reference/*` page. An upcoming rari change (mdn/rari#715)
resolves these against an index instead of probing candidate URLs and
following redirects, which surfaces such stale references as broken links.
@github-actions

github-actions Bot commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Preview URLs (4 pages)

Flaws (6)

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

Found an unexpected or unresolvable flaw? Please report it here.

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

  • macros:
    • Macro jsxref produces link /zh-CN/docs/Web/JavaScript/Reference/String which is a redirect
    • Macro jsxref produces link /zh-CN/docs/Web/JavaScript/Reference/Array which is a redirect

URL: /zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols
Title: 迭代协议
Flaw count: 4

  • macros:
    • Macro jsxref produces link /zh-CN/docs/Web/JavaScript/Reference/Array which is a redirect
    • Macro jsxref produces link /zh-CN/docs/Web/JavaScript/Reference/String which is a redirect
    • Macro jsxref produces link /zh-CN/docs/Web/JavaScript/Reference/Array which is a redirect
    • Macro jsxref produces link /zh-CN/docs/Web/JavaScript/Reference/String which is a redirect
External URLs (2)

URL: /zh-CN/docs/Mozilla/Firefox/Releases/33
Title: Firefox 33 for developers


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

(comment last updated: 2026-07-17 00:50:38)

@caugner
caugner marked this pull request as ready for review July 16, 2026 09:43
@caugner
caugner requested a review from a team as a code owner July 16, 2026 09:43
@caugner
caugner requested review from irvin and removed request for a team July 16, 2026 09:43
Comment thread files/zh-cn/web/javascript/reference/errors/not_a_constructor/index.md Outdated
@yin1999
yin1999 merged commit 2199757 into main Jul 17, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from Review requested to Done in MDN translated-content l10n-zh Jul 17, 2026
@yin1999
yin1999 deleted the zh-cn-stale-jsxref branch July 17, 2026 00:51
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

Development

Successfully merging this pull request may close these issues.

2 participants