From c8b8550cfb42054ffbc879d622459cbfbfd8f171 Mon Sep 17 00:00:00 2001 From: Ms2ger Date: Wed, 18 Jun 2014 10:21:56 +0200 Subject: [PATCH] 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. --- src/components/script/dom/bindings/codegen/CodegenRust.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/script/dom/bindings/codegen/CodegenRust.py b/src/components/script/dom/bindings/codegen/CodegenRust.py index 6962a154574..3fd95722f34 100644 --- a/src/components/script/dom/bindings/codegen/CodegenRust.py +++ b/src/components/script/dom/bindings/codegen/CodegenRust.py @@ -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,