Link [Abstract] to the existing concrete descriptor field

This makes codegen not emit anything strictly related to the interface which
are never used in the case of abstract interfaces, such as the Wrap method
or the DOMJSClass.
This commit is contained in:
Anthony Ramine 2015-12-16 00:40:37 +01:00
parent 05e456d0d2
commit 372da02a42
2 changed files with 3 additions and 2 deletions

View file

@ -180,7 +180,7 @@ class Descriptor(DescriptorProvider):
# If we're concrete, we need to crawl our ancestor interfaces and mark
# them as having a concrete descendant.
self.concrete = (not self.interface.isCallback() and
desc.get('concrete', True))
not self.interface.getExtendedAttribute("Abstract"))
self.hasUnforgeableMembers = (self.concrete and
any(MemberIsUnforgeable(m, self) for m in
self.interface.members))