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

Callbacks in namepsaces? #1408

Closed
tolmasky opened this issue Jun 6, 2024 · 1 comment
Closed

Callbacks in namepsaces? #1408

tolmasky opened this issue Jun 6, 2024 · 1 comment

Comments

@tolmasky
Copy link

tolmasky commented Jun 6, 2024

What is the issue with the Web IDL Standard?

Is there anywhere that explains why callbacks aren't allowed in namespaces? Would like to file a bug asking for it, but first want to make sure it isn't already explained why it is that way.

@domenic
Copy link
Member

domenic commented Jun 6, 2024

Callbacks don't correspond to JavaScript objects; they're helpers for making it easier for web specifications to call web developer code.

As such putting them in namespaces makes no sense, because there'd be no namespaceObject.callbackObject, since there is no callbackObject.

Hope this helps!

@domenic domenic closed this as completed Jun 6, 2024
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