| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 3566e7383dac76a6b7bdf04d72fae02fc04927ef..c9ddcca88e218b8ead01c9e4620cfad338eac6b5 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -19,12 +19,12 @@ static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const
|
| CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
|
| {% endif %}
|
| {% if method.is_raises_exception %}
|
| - ExceptionState es(info.GetIsolate());
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| {% endif %}
|
| {% if method.is_check_security_for_node %}
|
| - if (!BindingSecurity::shouldAllowAccessToNode(imp->{{method.name}}(es), es)) {
|
| + if (!BindingSecurity::shouldAllowAccessToNode(imp->{{method.name}}(exceptionState), exceptionState)) {
|
| v8SetReturnValueNull(info);
|
| - es.throwIfNeeded();
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| {% endif %}
|
| @@ -104,9 +104,9 @@ static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const
|
| %}
|
| EventTarget* impl = {{v8_class_name}}::toNative(info.Holder());
|
| if (DOMWindow* window = impl->toDOMWindow()) {
|
| - ExceptionState es(info.GetIsolate());
|
| - if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), es)) {
|
| - es.throwIfNeeded();
|
| + ExceptionState exceptionState(info.GetIsolate());
|
| + if (!BindingSecurity::shouldAllowAccessToFrame(window->frame(), exceptionState)) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| if (!window->document())
|
| @@ -143,7 +143,7 @@ RefPtr<ScriptArguments> scriptArguments(createScriptArguments(info, {{method.num
|
| {{method.cpp_type}} result = {{cpp_value}};
|
| {% endif %}
|
| {% if method.is_raises_exception %}
|
| -if (es.throwIfNeeded())
|
| +if (exceptionState.throwIfNeeded())
|
| return;
|
| {% endif %}
|
| {% if method.is_call_with_script_state %}
|
|
|