Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index c588b264257ffc838bba3bf7b192dd52620a0fe9..5bb9bfdbd7b6ccd3fc603f0c51b59c47afa2c80d 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -247,7 +247,7 @@ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
{% if method.idl_type == 'void' %} |
{{cpp_value}}; |
{% elif method.is_implemented_in_private_script %} |
-{{method.cpp_type}} result; |
+{{method.cpp_type}} result{{method.cpp_type_initializer}}; |
if (!{{method.cpp_value}}) |
return; |
{% elif method.is_constructor %} |