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

Globals can define a named property setter #231

Closed
annevk opened this issue Nov 8, 2016 · 3 comments
Closed

Globals can define a named property setter #231

annevk opened this issue Nov 8, 2016 · 3 comments

Comments

@annevk
Copy link
Member

annevk commented Nov 8, 2016

Window does and IDL even defines how it's handled (creates a separate prototype object).

https://heycam.github.io/webidl/#Global suggests they can't: "The interface must not define a named property setter."

@annevk
Copy link
Member Author

annevk commented Nov 8, 2016

We should probably disallow it for any new globals though. E.g., globals defined in 2016 or later. 😛

@bzbarsky
Copy link
Collaborator

bzbarsky commented Nov 8, 2016

I think you confused getter and setter here. Window has a named property getter.

@annevk
Copy link
Member Author

annevk commented Nov 8, 2016

I did, thanks!

@annevk annevk closed this as completed Nov 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants