Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 94b70730869b707916dfc76315938738c13565d4..c95b8329e114654dbe0b69bcf0c6a897b54032f9 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_argument_for_return_value %} |
+{{method.cpp_type}} cppValue; |
haraken
2014/10/15 14:38:29
I'd rename |cppValue| to |result| for consistency
bashi
2014/10/17 00:50:05
Done.
|
+{{cpp_value}}; |
{% elif method.is_constructor %} |
{{method.cpp_type}} impl = {{cpp_value}}; |
{% elif method.use_local_result and not method.union_arguments %} |