Index: Source/bindings/scripts/v8_attributes.py |
diff --git a/Source/bindings/scripts/v8_attributes.py b/Source/bindings/scripts/v8_attributes.py |
index 6af95ae469f84343c1992d6187e1035d3f8f0be8..baf7b78edfa17c929062abbbb9dc314c5993b69d 100644 |
--- a/Source/bindings/scripts/v8_attributes.py |
+++ b/Source/bindings/scripts/v8_attributes.py |
@@ -137,6 +137,7 @@ def generate_attribute(interface, attribute): |
} |
if is_constructor_attribute(attribute): |
+ generate_constructor_getter(interface, attribute, contents) |
return contents |
if not has_custom_getter: |
generate_getter(interface, attribute, contents) |
@@ -396,3 +397,7 @@ def property_attributes(attribute): |
def is_constructor_attribute(attribute): |
return attribute.idl_type.endswith('Constructor') |
+ |
+ |
+def generate_constructor_getter(interface, attribute, contents): |
+ contents['needs_constructor_getter_callback'] = contents['measure_as'] or contents['deprecate_as'] |