Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: Source/bindings/templates/methods.cpp

Issue 1029093003: [WIP] IDL: Add limited serializer support and use for RTCIceCandidate (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: use V8ObjectBuilder in modules/crypto Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/bindings/templates/methods.cpp
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
index 4110a88a37e1ef839ca78d07601d160185c94c70..ad7d1d3d4d8cd252dd361e8aefd819368f628c3a 100644
--- a/Source/bindings/templates/methods.cpp
+++ b/Source/bindings/templates/methods.cpp
@@ -244,7 +244,7 @@ Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
if (!{{method.cpp_value}})
return;
{% elif method.use_output_parameter_for_result %}
-{{method.cpp_type}} result;
+{{method.cpp_type}} result{{method.cpp_type_initializer}};
{{cpp_value}};
{% elif method.is_constructor %}
{{method.cpp_type}} impl = {{cpp_value}};

Powered by Google App Engine
This is Rietveld 408576698