Skip to content
Snippets Groups Projects
Commit bcf9d165 authored by Boris Zbarsky's avatar Boris Zbarsky
Browse files

Bug 760749. Make interface type constructor args work in WebIDL bindings. r=khuey

parent 48970d94
No related branches found
No related tags found
No related merge requests found
......@@ -460,6 +460,10 @@ class IDLInterface(IDLObjectWithScope):
for member in self.members:
member.finish(scope)
ctor = self.ctor()
if ctor is not None:
ctor.finish(scope)
def isInterface(self):
return True
......
......@@ -64,6 +64,13 @@ public:
static
already_AddRefed<TestInterface> Constructor(nsISupports*, uint32_t,
Nullable<bool>&, ErrorResult&);
static
already_AddRefed<TestInterface> Constructor(nsISupports*, TestInterface*,
ErrorResult&);
static
already_AddRefed<TestInterface> Constructor(nsISupports*,
NonNull<TestNonCastableInterface>&,
ErrorResult&);
// Integer types
int8_t GetReadonlyByte(ErrorResult&);
......
......@@ -18,7 +18,9 @@ callback TestCallback = void();
[Constructor,
Constructor(DOMString str),
Constructor(unsigned long num, boolean? bool)]
Constructor(unsigned long num, boolean? bool),
Constructor(TestInterface? iface),
Constructor(TestNonCastableInterface iface)]
interface TestInterface {
// Integer types
// XXXbz add tests for infallible versions of all the integer stuff
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment