Chromium Code Reviews| Index: Source/bindings/scripts/v8_interface.py |
| diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py |
| index e3d8f4c3a621a2d9fbab144f78d90d6222d5a899..917f156fc48a9aa4941ca96d1a075a4238ae55d8 100644 |
| --- a/Source/bindings/scripts/v8_interface.py |
| +++ b/Source/bindings/scripts/v8_interface.py |
| @@ -453,7 +453,7 @@ def overload_check_argument(index, argument): |
| def generate_constructor(interface, constructor): |
| return { |
| 'argument_list': constructor_argument_list(interface, constructor), |
| - 'arguments': [constructor_argument(argument, index) |
| + 'arguments': [constructor_argument(interface, constructor, argument, index) |
| for index, argument in enumerate(constructor.arguments)], |
| 'has_exception_state': |
| # [RaisesException=Constructor] |
| @@ -486,9 +486,11 @@ def constructor_argument_list(interface, constructor): |
| return arguments |
| -def constructor_argument(argument, index): |
| +def constructor_argument(interface, constructor, argument, index): |
| idl_type = argument.idl_type |
| + this_cpp_value = v8_methods.cpp_value(interface, constructor, index, for_constructor=True) |
|
Nils Barth (inactive)
2014/04/09 02:00:27
Could you inline this expression, as it's not bein
sof
2014/04/09 07:31:59
Done + sorted the fields.
|
| return { |
| + 'cpp_value': this_cpp_value, |
| 'has_default': 'Default' in argument.extended_attributes, |
| 'idl_type_object': idl_type, |
| # Dictionary is special-cased, but arrays and sequences shouldn't be |