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

Should an @@unscopables property also be defined for globals? #544

Closed
tobie opened this issue Apr 10, 2018 · 3 comments
Closed

Should an @@unscopables property also be defined for globals? #544

tobie opened this issue Apr 10, 2018 · 3 comments

Comments

@tobie
Copy link
Collaborator

tobie commented Apr 10, 2018

No description provided.

@tobie tobie changed the title Should an {{@@unscopables}} property also be defined for globals? Should an @@unscopables property also be defined for globals? Apr 10, 2018
@ExE-Boss
Copy link
Contributor

What would this do?

Can you provide reasoning as to why we might want to do or not do this?

@annevk
Copy link
Member

annevk commented Dec 12, 2019

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.

@annevk annevk closed this as completed Dec 12, 2019
@bathos
Copy link
Contributor

bathos commented Jul 25, 2023

The spec still links to this issue in a note at step 10 of “create an interface prototype object”:

Should an @@unscopables property also be defined if interface is declared with the [Global] extended attribute? This is discussed in issue #544.

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).

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

4 participants