Index: Source/bindings/scripts/unstable/v8_attributes.py |
diff --git a/Source/bindings/scripts/unstable/v8_attributes.py b/Source/bindings/scripts/unstable/v8_attributes.py |
index f70bf1a274c6a3a9c3f2f99a3b52175a93f1ec5e..37264b92c58661c0c9ac227121f1b407267badef 100644 |
--- a/Source/bindings/scripts/unstable/v8_attributes.py |
+++ b/Source/bindings/scripts/unstable/v8_attributes.py |
@@ -122,6 +122,8 @@ def generate_attribute(interface, attribute): |
'per_context_enabled_function': v8_utilities.per_context_enabled_function_name(attribute), # [PerContextEnabled] |
'property_attributes': property_attributes(attribute), |
'put_forwards': 'PutForwards' in extended_attributes, |
+ 'reflect_only': extended_attributes['ReflectOnly'].split('|') |
+ if 'ReflectOnly' in extended_attributes else None, # [ReflectOnly] |
'setter_callback': setter_callback_name(interface, attribute), |
'v8_type': v8_types.v8_type(idl_type), |
'runtime_enabled_function': v8_utilities.runtime_enabled_function_name(attribute), # [RuntimeEnabled] |
@@ -167,6 +169,11 @@ def generate_getter(interface, attribute, contents): |
if idl_type != 'EventHandler' and v8_types.is_interface_type(idl_type): |
release = True |
+ if 'ReflectOnly' in extended_attributes: |
+ contents['cpp_value_original'] = cpp_value |
+ # FIXME: rename to jsValue |
+ cpp_value = 'resultValue' |
Nils Barth (inactive)
2014/02/05 06:11:42
The local variable is called 'resultValue',
which
|
+ |
def v8_set_return_value_statement(for_main_world=False): |
if contents['is_keep_alive_for_gc']: |
return 'v8SetReturnValue(info, wrapper)' |