mirror of
https://github.com/servo/servo.git
synced 2025-10-13 15:00:28 +01:00
Add support for undefined default values for 'any'.
This also updates TestBinding to take into account the automatic default for optional 'any' arguments and dictionary members.
This commit is contained in:
parent
4786c30bce
commit
ef0ccd3e15
2 changed files with 13 additions and 3 deletions
|
@ -180,7 +180,7 @@ pub trait TestBindingMethods {
|
|||
fn PassOptionalInterface(&self, _: Option<JSRef<Blob>>) {}
|
||||
fn PassOptionalUnion(&self, _: Option<HTMLElementOrLong>) {}
|
||||
fn PassOptionalUnion2(&self, _: Option<EventOrString>) {}
|
||||
fn PassOptionalAny(&self, _: *mut JSContext, _: Option<JSVal>) {}
|
||||
fn PassOptionalAny(&self, _: *mut JSContext, _: JSVal) {}
|
||||
|
||||
fn PassOptionalNullableBoolean(&self, _: Option<Option<bool>>) {}
|
||||
fn PassOptionalNullableByte(&self, _: Option<Option<i8>>) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue