Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index c2d2e70a1dffe18aaddec76ae2d5b56428c20f57..78a1b0f1bedc2b7a7277e833dfea65d98b837add 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -233,6 +233,9 @@ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
{{method.cpp_type}} result{{method.cpp_type_initializer}}; |
if (!{{method.cpp_value}}) |
return; |
+{% elif method.use_output_parameter_for_result %} |
+{{method.cpp_type}} result; |
+{{cpp_value}}; |
{% elif method.is_constructor %} |
{{method.cpp_type}} impl = {{cpp_value}}; |
{% elif method.use_local_result and not method.union_arguments %} |