mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -554,6 +554,7 @@ impl TestBindingMethods for TestBinding {
|
|||
dict: RootedTraceableBox::new(TestDictionaryDefaults {
|
||||
UnrestrictedDoubleValue: 0.0,
|
||||
anyValue: RootedTraceableBox::new(Heap::default()),
|
||||
arrayValue: Vec::new(),
|
||||
booleanValue: false,
|
||||
bytestringValue: ByteString::new(vec![]),
|
||||
byteValue: 0,
|
||||
|
@ -790,6 +791,7 @@ impl TestBindingMethods for TestBinding {
|
|||
fn PassOptionalUsvstringWithDefault(&self, _: USVString) {}
|
||||
fn PassOptionalBytestringWithDefault(&self, _: ByteString) {}
|
||||
fn PassOptionalEnumWithDefault(&self, _: TestEnum) {}
|
||||
fn PassOptionalSequenceWithDefault(&self, _: Vec<i32>) {}
|
||||
|
||||
fn PassOptionalNullableBooleanWithDefault(&self, _: Option<bool>) {}
|
||||
fn PassOptionalNullableByteWithDefault(&self, _: Option<i8>) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue