-
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
Should an @@unscopables property also be defined for globals? #544
Comments
What would this do? Can you provide reasoning as to why we might want to do or not do this? |
It was a question in #494. I don't think there's a need for this and in general we haven't really used unscopables much. |
The spec still links to this issue in a note at step 10 of “create an interface prototype object”:
The “also be” in the note is maybe misleading because the steps which follow it do define @@unscopables properties on interface prototype objects for [Global] interfaces if they have [Unscopable] members. AFAICT there just aren’t any qualifying interfaces being defined out there in practice. Maybe the note should be removed now? It seems pretty harmless that it’s presently permitted, but if it were desirable to expressly forbid it, the place to do that wouldn’t be in those steps anyway — it’d be in the definition of [Unscopable] (e.g. “[Unscopable] must not be declared on members of [Global] interfaces” etc). |
No description provided.
The text was updated successfully, but these errors were encountered: