Bug 1000944. Allow unions and dictionaries that contain non-SpiderMonkey WebIDL interface types to be copy-constructed. r=dzbarsky

This commit is contained in:
Boris Zbarsky 2014-04-26 21:49:59 -04:00
parent 9364e14300
commit 7d9daf1fce

View File

@ -45,7 +45,11 @@ def isTypeCopyConstructible(type):
(type.isUnion() and
CGUnionStruct.isUnionCopyConstructible(type)) or
(type.isDictionary() and
CGDictionary.isDictionaryCopyConstructible(type.inner)))
CGDictionary.isDictionaryCopyConstructible(type.inner)) or
# Interface types are only copy-constructible if they're Gecko
# interfaces. SpiderMonkey interfaces are not copy-constructible
# because of rooting issues.
(type.isInterface() and type.isGeckoInterface()))
def wantsAddProperty(desc):