Index: Source/bindings/scripts/v8_methods.py |
diff --git a/Source/bindings/scripts/v8_methods.py b/Source/bindings/scripts/v8_methods.py |
index 197cdfbfff6ad4b7b526b42e37934270cced54fe..fc2be4077ac9f39047d03b8cd2e94af7f47a7c4c 100644 |
--- a/Source/bindings/scripts/v8_methods.py |
+++ b/Source/bindings/scripts/v8_methods.py |
@@ -94,7 +94,8 @@ def method_context(interface, method, is_visible=True): |
includes.update(['bindings/core/v8/ScriptCallStackFactory.h', |
'core/inspector/ScriptArguments.h']) |
is_call_with_script_state = has_extended_attribute_value(method, 'CallWith', 'ScriptState') |
- if is_call_with_script_state: |
+ is_call_with_this_value = has_extended_attribute_value(method, 'CallWith', 'ThisValue') |
+ if is_call_with_script_state or is_call_with_this_value: |
includes.add('bindings/core/v8/ScriptState.h') |
is_check_security_for_node = 'CheckSecurity' in extended_attributes |
if is_check_security_for_node: |
@@ -149,6 +150,7 @@ def method_context(interface, method, is_visible=True): |
'is_call_with_execution_context': has_extended_attribute_value(method, 'CallWith', 'ExecutionContext'), |
'is_call_with_script_arguments': is_call_with_script_arguments, |
'is_call_with_script_state': is_call_with_script_state, |
+ 'is_call_with_this_value': is_call_with_this_value, |
'is_check_security_for_frame': is_check_security_for_frame, |
'is_check_security_for_node': is_check_security_for_node, |
'is_check_security_for_window': is_check_security_for_window, |