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

Support empty array default IDL value #22077

Closed
KiChjang opened this issue Nov 1, 2018 · 1 comment
Closed

Support empty array default IDL value #22077

KiChjang opened this issue Nov 1, 2018 · 1 comment

Comments

@KiChjang
Copy link
Member

@KiChjang KiChjang commented Nov 1, 2018

Currently, defining the following WebIDL would raise an exception in CodegenRust.py:

sequence<object> transfer = [];

which is raised on this line of of the codegen.

@highfive
Copy link

@highfive highfive commented Nov 1, 2018

bors-servo added a commit that referenced this issue Nov 1, 2018
Handle default empty sequence values

Fixes #22077.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22084)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.