mirror of
https://github.com/servo/servo.git
synced 2025-08-13 01:15:34 +01:00
Handle default empty sequence values
This commit is contained in:
parent
95bfaa0a77
commit
99589d2f2a
3 changed files with 22 additions and 15 deletions
|
@ -64,6 +64,7 @@ dictionary TestDictionaryDefaults {
|
|||
USVString usvstringValue = "foo";
|
||||
TestEnum enumValue = "bar";
|
||||
any anyValue = null;
|
||||
sequence<object> arrayValue = [];
|
||||
|
||||
boolean? nullableBooleanValue = false;
|
||||
byte? nullableByteValue = 7;
|
||||
|
@ -380,6 +381,7 @@ interface TestBinding {
|
|||
void passOptionalStringWithDefault(optional DOMString arg = "x");
|
||||
void passOptionalUsvstringWithDefault(optional USVString arg = "x");
|
||||
void passOptionalEnumWithDefault(optional TestEnum arg = "foo");
|
||||
void passOptionalSequenceWithDefault(optional sequence<long> seq = []);
|
||||
// void passOptionalUnionWithDefault(optional (HTMLElement or long) arg = 9);
|
||||
// void passOptionalUnion2WithDefault(optional(Event or DOMString)? data = "foo");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue