Repository navigation
webidl: Implement sequences in unions - #9304
Conversation
7c6497e to
16a23bc
Compare
There was a problem hiding this comment.
This line can be removed from both branches of the conditional since it's the same
There was a problem hiding this comment.
Unless you did that thinking other object types might get added to the conditional
There was a problem hiding this comment.
Yeah eventually other types might be added.
It seems to me that that line would be necessary in all of them though (we're inside of hasObjectTypes), so I'll take it out of the conditional.
16a23bc to
5d3b228
Compare
|
r? @nox is probably a better bet at this point |
5d3b228 to
cf997b2
Compare
|
What happens if the type is -S-awaiting-review +S-awaiting-answer Reviewed 2 of 3 files at r1, 1 of 1 files at r2. Comments from the review on Reviewable.io |
cf997b2 to
87f1e2b
Compare
87f1e2b to
e2e8313
Compare
|
Good catch! (it only generated code for the former). I fixed it, and also implemented I think the implementation is correct, but since you probably know better than I if root_from_handlevalue suits correctly there. |
Sequence interfaces return values worked before, but had no test. Sequence interface arguments didn't work until the previous commit.
e2e8313 to
601ff74
Compare
That way it does not depend on the return value for the same type. This hopefully makes the code more clear, and avoids errors if something changes in the future (for example, we could want to pass slices as sequence arguments).
601ff74 to
9508219
Compare
|
@Ms2ger Do we care about the |
|
Not sure. |
|
@nox Care about in what sense? We established that |
|
@bors-servo r+ @jdm Sure, but that is at odds with |
|
📌 Commit 9508219 has been approved by |
|
Related to |
webidl: Implement sequences in unions Unblocks #9053 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9304) <!-- Reviewable:end -->
|
⛄ The build was interrupted to prioritize another pull request. |
|
@bors-servo p=2 force |
webidl: Implement sequences in unions Unblocks #9053 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9304) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt |
Unblocks #9053