mirror of
https://github.com/servo/servo
synced 2026-05-03 12:52:25 +02:00
Handle default empty sequence values
This commit is contained in:
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user