Bug 932998. Don't try to codegen code that keeps alive objects with 'owned' nativeOwnership, since we have no way to do that. r=smaug

This commit is contained in:
Boris Zbarsky 2013-10-31 22:07:11 -04:00
parent fe8636913f
commit d5214f1e59

View File

@ -3210,6 +3210,12 @@ for (uint32_t i = 0; i < length; ++i) {
isMember or
isCallbackReturnValue)
if forceOwningType and descriptor.nativeOwnership == 'owned':
raise TypeError("Interface %s has 'owned' nativeOwnership, so we "
"don't know how to keep it alive in %s" %
(descriptor.interface.identifier.name,
sourceDescription))
typeName = descriptor.nativeType
typePtr = typeName + "*"