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

Split (Async)?(Generator)?Function class and ctor pages #22778

Merged
merged 2 commits into from
Dec 7, 2022

Conversation

Josh-Cena
Copy link
Member

Description

This came out of the page types work. We have three pages that have really weird structures and don't fit nicely into the class/ctor dichotomy, so this PR splits them and also notes the inheritance from Function, as previously done for TypedArray (#20025).

Motivation

Additional details

Related issues and pull requests

@Josh-Cena Josh-Cena requested a review from a team as a code owner December 6, 2022 20:59
@Josh-Cena Josh-Cena requested review from wbamberg and removed request for a team December 6, 2022 20:59
@github-actions github-actions bot added the Content:JS JavaScript docs label Dec 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2022

Preview URLs (9 pages)
Flaws (3)

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

URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/GeneratorFunction/GeneratorFunction
Title: GeneratorFunction() constructor
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: javascript.builtins.GeneratorFunction.GeneratorFunction

URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction/AsyncFunction
Title: AsyncFunction() constructor
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: javascript.builtins.AsyncFunction.AsyncFunction

URL: /en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncGeneratorFunction/AsyncGeneratorFunction
Title: AsyncGeneratorFunction() constructor
Flaw count: 1

  • bad_bcd_queries:
    • No BCD data for query: javascript.builtins.AsyncGeneratorFunction.AsyncGeneratorFunction

(comment last updated: 2022-12-07 04:52:36)

…rototype/index.md

Co-authored-by: wbamberg <will@bootbonnet.ca>
Copy link
Collaborator

@wbamberg wbamberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense to me and all looks good but we will need BCD for the constructor pages.

- Constructor
- JavaScript
- Reference
browser-compat: javascript.builtins.AsyncFunction.AsyncFunction
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we will need BCD for these constructors.

@Josh-Cena
Copy link
Member Author

Yes, I'll do that later

@wbamberg wbamberg merged commit 5039045 into mdn:main Dec 7, 2022
@Josh-Cena Josh-Cena deleted the split-fn-ctor branch December 7, 2022 05:31
wbamberg added a commit to wbamberg/content that referenced this pull request Dec 8, 2022
* upstream/main: (286 commits)
  Correct Epsilon property description (mdn#22804)
  Fix typo in subtle crypto digest (mdn#22802)
  Alt tag added - reference issue mdn#21616 (mdn#22255)
  WeakSet: Improve recursive validation example (mdn#22787)
  New page: validityState.valueMissing (mdn#22691)
  Edit: <dialog> element (mdn#22786)
  Update Paint Timing pages (mdn#22771)
  chore(deps): bump @mdn/yari from 1.27.16 to 1.27.20 (mdn#22791)
  chore(deps): bump technote-space/get-diff-action from 6.1.1 to 6.1.2 (mdn#22790)
  Remove WebGLSidebar (mdn#22782)
  fix indefinite articles usage (mdn#22789)
  Removed part of sentence that refers to code that appears to have been removed (mdn#22788)
  Split (Async)?(Generator)?Function class and ctor pages (mdn#22778)
  Fix interfaces links (mdn#22779)
  Change "hypertext link" to "hypertext links" (mdn#22780)
  add hyphenate-limit-chars CSS property (mdn#22747)
  22225: Add links to accessibility guides section (mdn#22240)
  ci(markdownlint): use GitHub API to get changed files (mdn#22773)
  Document font-palette & @font-palette-values with its descriptors (mdn#22519)
  fix typo in createImageBitmap api (mdn#22774)
  ...
hamishwillee pushed a commit to hamishwillee/content that referenced this pull request Dec 12, 2022
* Split (Async)?(Generator)?Function class and ctor pages

* Update files/en-us/web/javascript/reference/global_objects/function/prototype/index.md

Co-authored-by: wbamberg <will@bootbonnet.ca>

Co-authored-by: wbamberg <will@bootbonnet.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants