Index: Source/bindings/scripts/v8_types.py |
diff --git a/Source/bindings/scripts/v8_types.py b/Source/bindings/scripts/v8_types.py |
index a4d99391611c16b8a2322cc7873ebd235a883786..944db4a604f6a029d45528807efeb4a48f8c9696 100644 |
--- a/Source/bindings/scripts/v8_types.py |
+++ b/Source/bindings/scripts/v8_types.py |
@@ -631,6 +631,15 @@ def v8_value_to_local_cpp_value(idl_type, extended_attributes, v8_value, variabl |
IdlTypeBase.v8_value_to_local_cpp_value = v8_value_to_local_cpp_value |
+def use_output_parameter_for_result(idl_type): |
+ """True when methods/getters which return the given idl_type should |
+ take the output argument. |
+ """ |
+ return idl_type.is_dictionary or idl_type.is_union_type |
+ |
+IdlTypeBase.use_output_parameter_for_result = property(use_output_parameter_for_result) |
+ |
+ |
################################################################################ |
# C++ -> V8 |
################################################################################ |