Index: Source/bindings/scripts/v8_attributes.py |
diff --git a/Source/bindings/scripts/v8_attributes.py b/Source/bindings/scripts/v8_attributes.py |
index 6f2496d6a9a283abe98df355e27c16bb0619d1d4..71b88fe33863591486cfd97197e181fcbc2e03e1 100644 |
--- a/Source/bindings/scripts/v8_attributes.py |
+++ b/Source/bindings/scripts/v8_attributes.py |
@@ -326,7 +326,7 @@ def setter_expression(interface, attribute, contents): |
if (interface.name in ['Window', 'WorkerGlobalScope'] and |
attribute.name == 'onerror'): |
includes.add('bindings/v8/V8ErrorHandler.h') |
- arguments.append('V8EventListenerList::findOrCreateWrapper<V8ErrorHandler>(v8Value, true, info.GetIsolate())') |
+ arguments.append('V8EventListenerList::findOrCreateWrapper<V8ErrorHandler>(v8Value, true, ScriptState::current(info.GetIsolate()))') |
else: |
arguments.append('V8EventListenerList::getEventListener(ScriptState::current(info.GetIsolate()), v8Value, true, ListenerFindOrCreate)') |
elif idl_type.is_interface_type and not idl_type.array_type: |