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

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

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

michaelficarra
Copy link
Contributor

@michaelficarra michaelficarra commented Oct 28, 2024

See the related PR in HTML: whatwg/html#10635

As of tc39/ecma262#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 tc39/ecma262#3408. It wasn't a problem that Web IDL continued to use the old-style Type checks until tc39/ecma262#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


Preview | Diff

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

LGTM; will merge after #1446 gets merged.

@domenic domenic merged commit 0675b96 into whatwg:main Oct 29, 2024
2 checks passed
@michaelficarra michaelficarra deleted the is-a-type-tests branch October 31, 2024 04:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants