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

any type conversion does not take into account of symbols #301

Closed
TimothyGu opened this issue Feb 7, 2017 · 3 comments
Closed

any type conversion does not take into account of symbols #301

TimothyGu opened this issue Feb 7, 2017 · 3 comments
Assignees

Comments

@TimothyGu
Copy link
Member

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.

@bzbarsky
Copy link
Collaborator

bzbarsky commented Feb 7, 2017

Yeah, we probably need to define an IDL type for Symbols and map to that...

@TimothyGu
Copy link
Member Author

@bzbarsky, do we really need a symbol type for IDL though? What applications for it can you foresee?

@bzbarsky
Copy link
Collaborator

bzbarsky commented Feb 7, 2017

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

@domenic domenic self-assigned this Jun 27, 2017
domenic added a commit that referenced this issue Jun 27, 2017
domenic added a commit that referenced this issue Jul 31, 2017
triple-underscore added a commit to triple-underscore/triple-underscore.github.io that referenced this issue Jul 31, 2017
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

3 participants