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

Log a warning for interfaces and namespaces missing [Exposed] #1077

Open
tobie opened this issue Aug 23, 2017 · 2 comments
Open

Log a warning for interfaces and namespaces missing [Exposed] #1077

tobie opened this issue Aug 23, 2017 · 2 comments

Comments

@tobie
Copy link
Contributor

tobie commented Aug 23, 2017

In whatwg/webidl#423 we've started making [Exposed] mandatory (to favor explicit over implicit and avoid bugs where interfaces aren't exposed).

It would help move this forward if a warning was printed to the console when a namespace, non-callback interface, or callback interface with constants is missing its [Exposed] extended attribute.

As a second step, this warning could be turned into a fatal error.

@zcorpan
Copy link
Contributor

zcorpan commented Aug 23, 2017

Also see plinss/widlparser#27

@tabatkins
Copy link
Collaborator

This is done now, but you have to turn it on explicitly via Complain About: missing-exposed on. I need to do some refactoring of my metadata manager to enable it to be turned on by default, I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants