Index: Source/bindings/scripts/v8_utilities.py |
diff --git a/Source/bindings/scripts/v8_utilities.py b/Source/bindings/scripts/v8_utilities.py |
index cc64be4f916636c7e3972f23b32bc1e31e01402a..dafee6a75b590cefecd29a05cc192d6036b762c4 100644 |
--- a/Source/bindings/scripts/v8_utilities.py |
+++ b/Source/bindings/scripts/v8_utilities.py |
@@ -113,7 +113,8 @@ def scoped_name(interface, definition, base_name): |
partial_interface_implemented_as = definition.extended_attributes.get('PartialInterfaceImplementedAs') |
if partial_interface_implemented_as: |
return '%s::%s' % (partial_interface_implemented_as, base_name) |
- if definition.is_static: |
+ if (definition.is_static or |
+ definition.name in ('Constructor', 'NamedConstructor')): |
return '%s::%s' % (cpp_name(interface), base_name) |
return 'impl->%s' % base_name |