Chromium Code Reviews| Index: Source/bindings/templates/methods.cpp |
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
| index 0918767796fc51e16f7dd3a0045a19c6ccfea0c7..01d6d34d61b78071db018573cfcef93af9d5aafe 100644 |
| --- a/Source/bindings/templates/methods.cpp |
| +++ b/Source/bindings/templates/methods.cpp |
| @@ -247,7 +247,7 @@ Document& document = *toDocument(currentExecutionContext(info.GetIsolate())); |
| {% if method.idl_type == 'void' %} |
| {{cpp_value}}; |
| {% elif method.is_implemented_in_private_script %} |
| -{{method.cpp_type}} result; |
| +{{method.cpp_type}} result{% if method.cpp_type == 'int' %} = 0{% endif %}; |
|
haraken
2014/07/15 15:13:25
method.cpp_type == 'int' is a bit too hacky.
Can
|
| if (!{{method.cpp_value}}) |
| return; |
| {% elif method.is_constructor %} |