mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Auto merge of #9786 - peterjoel:fix_codegen_is_array_like, 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 -->
This commit is contained in:
commit
c37a086660
4 changed files with 25 additions and 5 deletions
|
@ -69,7 +69,9 @@ dictionary TestDictionaryDefaults {
|
|||
object? nullableObjectValue = null;
|
||||
};
|
||||
|
||||
[Constructor]
|
||||
[Constructor,
|
||||
Constructor(sequence<unrestricted double> numberSequence),
|
||||
Constructor(unrestricted double num)]
|
||||
interface TestBinding {
|
||||
attribute boolean booleanAttribute;
|
||||
attribute byte byteAttribute;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue