-
Notifications
You must be signed in to change notification settings - Fork 163
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
any
type conversion does not take into account of symbols
#301
Comments
Yeah, we probably need to define an IDL type for Symbols and map to that... |
@bzbarsky, do we really need a symbol type for IDL though? What applications for it can you foresee? |
None offhand, but the way IDL works in general is that ES types get mapped to IDL types, so we need a way to represent Symbol on the IDL side. The Symbol type would work much like "object": it would just be an opaque reference to the ES Symbol. There would be no syntactic way to express the Symbol type other than "any". |
Fixes part of https://www.w3.org/Bugs/Public/show_bug.cgi?id=27553. Fixes #301.
Fixes part of https://www.w3.org/Bugs/Public/show_bug.cgi?id=27553. Fixes #301.
https://heycam.github.io/webidl/#es-any uses Type(x), but does not define a case for when Type(V) is Symbol, as is possible under the current ES spec.
The text was updated successfully, but these errors were encountered: