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

WebIDL2 fails to parse attribute Promise<DOMString>[] baz #19

Closed
jyasskin opened this issue Nov 29, 2014 · 2 comments
Closed

WebIDL2 fails to parse attribute Promise<DOMString>[] baz #19

jyasskin opened this issue Nov 29, 2014 · 2 comments

Comments

@jyasskin
Copy link
Member

With a No name in attribute, line 3 (tokens: '[] baz;') error.

https://github.com/jyasskin/webidl2.js/compare/array-of-promise has a failing test case for this, based on a test case in ReSpec.

@darobin
Copy link
Member

darobin commented Dec 11, 2014

Hmmmm, an array of Promises? If this is something you found in the ReSpec test suite, it could possibly be that ReSpec was on crack at the time :)

@tobie Since you most recently looked into the generics code, is this something that should actually work?

@tobie
Copy link
Member

tobie commented Dec 11, 2014

So this is a valid WebIDL construct as sequences aren't permitted in attributes. I don't see why it should not work out of the box, frankly.

jyasskin added a commit to jyasskin/webidl2.js that referenced this issue Apr 22, 2015
This appears in the #attr-basic test case for ReSpec.

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

No branches or pull requests

3 participants