[whatwg/webidl] Editorial: replace uses of the Type macro with is-a tests (PR #1447)

See the related PR in HTML: https://github.com/whatwg/html/pull/10635

As of https://github.com/tc39/ecma262/pull/2874 (September 2022), ecma262 no longer uses the Type macro for simple type tests. We have replaced them with "x is a Y"-style notation. We also replaced most of the remaining uses of the Type macro with the new SameType AO in https://github.com/tc39/ecma262/pull/3408. It wasn't a problem that Web IDL continued to use the old-style Type checks until https://github.com/tc39/ecma262/pull/3420 which removes the final use of the Type macro and with it the Type macro itself.

This is the Web IDL integration, updating the type tests to the new form and allowing us to un-define the Type macro in ecma262.

/cc @syg @bakkot


<!--
    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.
-->
***
<a href="https://whatpr.org/webidl/1447.html" title="Last updated on Oct 28, 2024, 6:20 PM UTC (87cacb6)">Preview</a> | <a href="https://whatpr.org/webidl/1447/4381866...87cacb6.html" title="Last updated on Oct 28, 2024, 6:20 PM UTC (87cacb6)">Diff</a>
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Editorial: replace uses of the Type macro with is-a tests

-- File Changes --

    M index.bs (116)

-- Patch Links --

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

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

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

Received on Monday, 28 October 2024 18:20:27 UTC