Fix typo in the non-union code path for typedefs.

This commit is contained in:
Ms2ger 2017-02-08 12:28:51 +01:00
parent 35bc171a05
commit 8a5987c1db
2 changed files with 2 additions and 1 deletions

View file

@ -6127,7 +6127,7 @@ class CGBindingRoot(CGThing):
cgthings.extend([CGGeneric("\npub use dom::bindings::codegen::UnionTypes::%s as %s;\n\n" %
(t.innerType, t.identifier.name))])
else:
assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider)
assert not typeNeedsRooting(t.innerType, config.getDescriptorProvider())
cgthings.extend([CGGeneric("\npub type %s = " % (t.identifier.name)),
getRetvalDeclarationForType(t.innerType, config.getDescriptorProvider()),
CGGeneric(";\n\n")])