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 cf852f4efc5825e0fa5d5e3b287b00fa585b1bfa..6337fece79f84d4e65d8b959cc843d85f5920282 100644 |
| --- a/Source/bindings/scripts/v8_interface.py |
| +++ b/Source/bindings/scripts/v8_interface.py |
| @@ -1229,6 +1229,8 @@ def property_getter(getter, cpp_arguments): |
| return 'result.isNull()' |
| if idl_type.is_interface_type: |
| return '!result' |
| + if idl_type.name == 'Any' or idl_type.name == 'Object': |
| + return 'result.isNull()' |
|
vivekg
2015/03/03 12:36:33
Without the above condition, the code is generated
Jens Widell
2015/03/03 12:50:19
I wonder if 'result.isEmpty()' is a better conditi
vivekg
2015/03/03 12:56:02
Yeah, makes perfect sense. I will upload a new pat
|
| return '' |
| idl_type = getter.idl_type |