| Index: Source/bindings/scripts/v8_methods.py
|
| diff --git a/Source/bindings/scripts/v8_methods.py b/Source/bindings/scripts/v8_methods.py
|
| index dd32e7c7251a2e34b83f721c7d8fec6947755aa8..e748e34c7bbfadf458d5369c37211ca0d93ef026 100644
|
| --- a/Source/bindings/scripts/v8_methods.py
|
| +++ b/Source/bindings/scripts/v8_methods.py
|
| @@ -230,7 +230,8 @@ def cpp_value(interface, method, number_of_arguments):
|
| def v8_set_return_value(interface_name, method, cpp_value, for_main_world=False):
|
| idl_type = method.idl_type
|
| extended_attributes = method.extended_attributes
|
| - if idl_type.name == 'void':
|
| + if not idl_type or idl_type.name == 'void':
|
| + # Constructors and void methods don't have a return type
|
| return None
|
|
|
| release = False
|
|
|