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

Cannot pass an array in argument of a constructor #162

Closed
cdumez opened this issue Mar 11, 2013 · 3 comments
Closed

Cannot pass an array in argument of a constructor #162

cdumez opened this issue Mar 11, 2013 · 3 comments
Milestone

Comments

@cdumez
Copy link

cdumez commented Mar 11, 2013

I have tried the following with Respec.js:

<dl title="[Constructor(DOMString[] type, DOMString value)] interface MyInterface" class="idl">

But this fails due to the array type: '[]' in the constructor. Should I somehow escape the square brackets? I haven't been able to find out how to do it.

@cdumez
Copy link
Author

cdumez commented Mar 11, 2013

The error looks like:
"ERROR: Expected definition, got: type, DOMString value)] interface MyInterface"

@darobin
Copy link
Member

darobin commented Dec 23, 2014

Assuming this still doesn't work, it will get fixed with the work on the new WebIDL module.

@darobin darobin modified the milestone: 3.2 Dec 23, 2014
@marcoscaceres
Copy link
Member

WFM in using contiguous WebIDL.

screenshot 2015-08-03 20 26 45

shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
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