Skip to content

Commit

Permalink
Add codegen test for function overloads taking typed array args
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanewok committed Mar 23, 2018
1 parent 2437a84 commit fbfcc76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/script/dom/testbinding.rs
Expand Up @@ -472,6 +472,9 @@ impl TestBindingMethods for TestBinding {
fn PassStringSequence(&self, _: Vec<DOMString>) {}
fn PassInterfaceSequence(&self, _: Vec<DomRoot<Blob>>) {}

fn PassOverloaded(&self, _: CustomAutoRooterGuard<typedarray::ArrayBuffer>) {}
fn PassOverloaded_(&self, _: DOMString) {}

fn PassNullableBoolean(&self, _: Option<bool>) {}
fn PassNullableByte(&self, _: Option<i8>) {}
fn PassNullableOctet(&self, _: Option<u8>) {}
Expand Down
3 changes: 3 additions & 0 deletions components/script/dom/webidls/TestBinding.webidl
Expand Up @@ -275,6 +275,9 @@ interface TestBinding {
void passStringSequence(sequence<DOMString> seq);
void passInterfaceSequence(sequence<Blob> seq);

void passOverloaded(ArrayBuffer arg);
void passOverloaded(DOMString arg);

void passNullableBoolean(boolean? arg);
void passNullableByte(byte? arg);
void passNullableOctet(octet? arg);
Expand Down

0 comments on commit fbfcc76

Please sign in to comment.