-
Notifications
You must be signed in to change notification settings - Fork 164
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
Install @@toStringTag on namespace objects #873
Install @@toStringTag on namespace objects #873
Conversation
Interesting. I don't think we should do this; instead we can fix Chrome. Namespace objects here are patterned after those in the JS spec, such as Note also that the other namespace objects on the platform, |
Oh, I didn't click through your link. I see the JS spec is inconsistent, and Hmm, so in that case probably we should align with the JS spec... |
I filed tc39/ecma262#1970 to get some clarity here. We should probably wait for that to settle before going either way. |
Thank you for rapid feedback! I've removed |
@shvaikalesh it looks like the plan is to have toStringTag on namespace objects after all, per tc39/ecma262#2057 (comment). Would you be up for finishing this PR, and also adding web platform tests? (For web platform tests we should test |
Co-authored-by: ExE Boss <[email protected]>
When it comes to |
It should follow the normal rules for Web IDL. |
@domenic Thank you for moving this forward! The tests are at web-platform-tests/wpt#24717. Is there something I could do to finish this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR looks good! I'll merge. If you could also file issues on the engines per https://github.com/heycam/webidl#breaking-changes-should-be-filed-against that'd be ideal.
Follow-up of #357.
This change aligns WebIDL namespace objects with ECMA-262 ones like
Math
andAtomics
.Chrome (84.0.4126.0) already implements this PR:
cc @domenic
Preview | Diff