-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use JsValue for webidl sequence. #1152
Conversation
Thanks for this! I'm not sure though if Do you know if other non-array types are accepted/returned? |
I wasn't sure exactly what the semantics are. It sounds like sequences should be valid, but all the examples use |
Ah yeah it's probably worth playing around with this a bit and some of the newly exposed API. One option is to just bind this as |
I've done some experimentation on browsers in #1038 |
8b6fc75
to
e91328c
Compare
I've just set it to use JsValue for now. |
Ok looks good to me! Want to add a small test as well exercising this? Also mind taking a look @fitzgen as well and confirming you're good w/ this strategy? |
Is there a reason not to use |
@fitzgen I think an |
I'm not suggesting Maybe we are talking past each other here? |
@fitzgen oh sorry what I mean is that if we have |
Is this issue specifically for parameters? I would expect |
@alexcrichton Can't you just use |
@fitzgen ah yeah sorry I'm thinking about parameters, but I think we still need @Pauan it's true yeah |
Edit: See comment below |
https://heycam.github.io/webidl/#es-sequence
|
That is pretty definitive. Ignore my comment about "I don't think we can rely on..." |
Ok I think we're probably good to go in this case with argument position as |
Ok sounds good! |
05abafa
to
441cda3
Compare
441cda3
to
cb8bf93
Compare
Done. Also rebased and squashed. |
No description provided.