Correct the condition for generating CGGetConstructorObjectMethod.

As we don't actually implement the feature for which this is needed, I've
commented the call out for now and mentioned the issue for the feature.
This commit is contained in:
Ms2ger 2014-06-18 10:21:56 +02:00
parent 040a43778e
commit c8b8550cfb

View file

@ -3807,8 +3807,10 @@ class CGDescriptor(CGThing):
cgThings = []
if descriptor.interface.hasInterfacePrototypeObject():
cgThings.append(CGGetProtoObjectMethod(descriptor))
else:
cgThings.append(CGGetConstructorObjectMethod(descriptor))
if descriptor.interface.hasInterfaceObject():
# https://github.com/mozilla/servo/issues/2665
# cgThings.append(CGGetConstructorObjectMethod(descriptor))
pass
if descriptor.interface.hasInterfacePrototypeObject():
(hasMethod, hasGetter, hasLenientGetter,