[whatwg/webidl] Editorial: use CreateBuiltinFunction for more built-in function objects (PR #1612)

This is a bit clearer and more explicit than having the separate paragraphs afterwards. It also makes the arguments clear upfront.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***

### :boom: Error: 422 Unprocessable Entity :boom: ###

[PR Preview](https://github.com/tobie/pr-preview#pr-preview) failed to build. _(Last tried on Jun 22, 2026, 6:38 AM UTC)_.

<details>
<summary>More</summary>


PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

:rotating_light: [Spec Generator](https://www.w3.org/publications/spec-generator/) - Spec Generator is the web service used to build bikeshed/ReSpec specs

:link: [Related URL](https://www.w3.org/publications/spec-generator/?type=bikeshed-spec&output=html&url=https%3A%2F%2Fraw.githubusercontent.com%2Fwhatwg%2Fwebidl%2F3e0e5205e7b8569aec63ce545d35d2235cefc447%2Findex.bs&force=1&md-status=LS-PR&md-Text-Macro=PR-NUMBER%201612)

**Error output:**

```json
[
    {
        "lineNum": "13411:53",
        "messageType": "warning",
        "text": "The var 'thisArg' (in algorithm 'to invoke the forEach method of Maps') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13431:26",
        "messageType": "warning",
        "text": "The var 'keyArg' (in algorithm 'to invoke the get method of Maps') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13453:26",
        "messageType": "warning",
        "text": "The var 'keyArg' (in algorithm 'to invoke the has method of Maps') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13477:26",
        "messageType": "warning",
        "text": "The var 'keyArg' (in algorithm 'to invoke the set method of Maps') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13479:28",
        "messageType": "warning",
        "text": "The var 'valueArg' (in algorithm 'to invoke the set method of Maps') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13506:26",
        "messageType": "warning",
        "text": "The var 'keyArg' (in algorithm 'to invoke the delete method of Maps') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13665:53",
        "messageType": "warning",
        "text": "The var 'thisArg' (in algorithm 'to invoke the forEach method of Sets') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13685:28",
        "messageType": "warning",
        "text": "The var 'valueArg' (in algorithm 'to invoke the has method of Sets') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13709:28",
        "messageType": "warning",
        "text": "The var 'valueArg' (in algorithm 'to invoke the add method of Sets') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": "13736:28",
        "messageType": "warning",
        "text": "The var 'valueArg' (in algorithm 'to invoke the delete method of Sets') is only used once.\nIf this is not a typo, please add an ignore='' attribute to the <var>."
    },
    {
        "lineNum": null,
        "messageType": "failure",
        "text": "Did not generate, due to errors exceeding the allowed error level."
    }
]
```

_This seems to be an issue with the [Spec Generator](https://www.w3.org/publications/spec-generator/) service. PR Preview doesn't manage this service and so has no control over it. If you've identified an issue with it, you can [report the issue to the maintainers of Spec Generator](https://github.com/w3c/spec-generator/issues/new) directly. Please be courteous. Thank you!_

_If you don't have enough information above to solve the error by yourself or if the issue doesn't seem related to Spec Generator, you can [file an issue with PR Preview](https://github.com/tobie/pr-preview/issues/new?title=Unidentified%20Error&body=See%20whatwg/webidl%231612.)._

</details>

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/webidl/pull/1612

-- Commit Summary --

  * Editorial: use CreateBuiltinFunction for more built-in function objects

-- File Changes --

    M index.bs (167)

-- Patch Links --

https://github.com/whatwg/webidl/pull/1612.patch
https://github.com/whatwg/webidl/pull/1612.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1612
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1612@github.com>

Received on Monday, 22 June 2026 06:38:40 UTC