mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Support variadic interface arguments (fixes #8159)
We use a RootedVec value in codegen, of which we use the `r()` method to pass `&[&T]` to the interface methods.
This commit is contained in:
parent
e66a361e08
commit
acb13dc899
7 changed files with 105 additions and 63 deletions
|
@ -68,6 +68,7 @@ dictionary TestDictionaryDefaults {
|
|||
object? nullableObjectValue = null;
|
||||
};
|
||||
|
||||
[Constructor]
|
||||
interface TestBinding {
|
||||
attribute boolean booleanAttribute;
|
||||
attribute byte byteAttribute;
|
||||
|
@ -340,7 +341,7 @@ interface TestBinding {
|
|||
void passVariadicUsvstring(USVString... args);
|
||||
void passVariadicByteString(ByteString... args);
|
||||
void passVariadicEnum(TestEnum... args);
|
||||
// void passVariadicInterface(Blob... args);
|
||||
void passVariadicInterface(Blob... args);
|
||||
void passVariadicUnion((HTMLElement or long)... args);
|
||||
void passVariadicUnion2((Event or DOMString)... args);
|
||||
void passVariadicUnion3((Blob or DOMString)... args);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue