Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFixed compile error in generated code, when webidl constructors have same number of args #9786
Conversation
highfive
commented
Feb 28, 2016
38f6543
to
0a8459b
|
Why don't we just call |
|
@nox I don't understand the difference in terms of safety (one function is just a proxy to the other), but I'll agree that it would be less code to call |
69f6ebc
to
1dd72f7
|
Humm... I'd rather keep |
|
I agree with @ecoal95. Please also file a follow-up issue to see what Gecko does and copy that. |
|
Presumably @@iterator, for which we have a bug already. |
|
So the consensus is that I should put it back to how it was, with a separate |
|
I'm fine with this. r? @jdm |
e7cbf3c
to
a7696c4
|
@peterjoel: One last request - could you add whatever is necessary to trigger this to TestBinding.webidl, so we have some confidence that the result compiles correctly? :) |
…same number of args Edited test webidl to show issue, and fix
a7696c4
to
3e78b54
|
@jdm Done. |
|
@bors-servo r=jdm |
|
|
Fixed compile error in generated code, when webidl constructors have same number of args One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
Fixed compile error in generated code, when webidl constructors have same number of args One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function `IsArrayLike` that no longer exists. I re-implemented it with a more rust-like naming scheme. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9786) <!-- Reviewable:end -->
|
|
peterjoel commentedFeb 28, 2016
One of the ways that generated code differentiates constructors is by comparing if the args are array-like. The generated code was calling a function
IsArrayLikethat no longer exists. I re-implemented it with a more rust-like naming scheme.