Index: Source/bindings/scripts/v8_interface.py |
diff --git a/Source/bindings/scripts/v8_interface.py b/Source/bindings/scripts/v8_interface.py |
index b7b9561921eaf4a1efb57417fd0ac2e1e3c27e9b..21c2747c151ce50920308bb99cf2cf54539d53ab 100644 |
--- a/Source/bindings/scripts/v8_interface.py |
+++ b/Source/bindings/scripts/v8_interface.py |
@@ -232,12 +232,13 @@ def interface_context(interface): |
for attribute in interface.attributes] |
context.update({ |
'attributes': attributes, |
- 'has_accessors': any(attribute['is_expose_js_accessors'] for attribute in attributes), |
+ 'has_accessors': any(attribute['is_expose_js_accessors'] and attribute['should_be_exposed_to_script'] for attribute in attributes), |
'has_attribute_configuration': any( |
not (attribute['is_expose_js_accessors'] or |
attribute['is_static'] or |
attribute['runtime_enabled_function'] or |
attribute['per_context_enabled_function']) |
+ and attribute['should_be_exposed_to_script'] |
for attribute in attributes), |
'has_constructor_attributes': any(attribute['constructor_type'] for attribute in attributes), |
'has_per_context_enabled_attributes': any(attribute['per_context_enabled_function'] for attribute in attributes), |
@@ -288,7 +289,8 @@ def interface_context(interface): |
if runtime_enabled_function or has_custom_registration: |
custom_registration_methods.append(method) |
continue |
- method_configuration_methods.append(method) |
+ if method['should_be_exposed_to_script']: |
+ method_configuration_methods.append(method) |
for method in methods: |
# The value of the Function object’s “length” property is a Number |