| Index: Source/bindings/scripts/CodeGeneratorV8.pm
|
| diff --git a/Source/bindings/scripts/CodeGeneratorV8.pm b/Source/bindings/scripts/CodeGeneratorV8.pm
|
| index c8883e5214185bd48f87721263f74e9463e76599..8d9ca8cffdec65ef02819edcdb14cc2f871d0e55 100644
|
| --- a/Source/bindings/scripts/CodeGeneratorV8.pm
|
| +++ b/Source/bindings/scripts/CodeGeneratorV8.pm
|
| @@ -1890,12 +1890,9 @@ END
|
| $code .= " transferHiddenDependency(info.Holder(), imp->${attrImplName}(), value, ${v8ClassName}::eventListenerCacheIndex, info.GetIsolate());\n";
|
| }
|
| AddToImplIncludes("bindings/v8/V8EventListenerList.h");
|
| - if ($interfaceName eq "WorkerContext" and $attribute->signature->name eq "onerror") {
|
| - AddToImplIncludes("bindings/v8/V8WorkerContextErrorHandler.h");
|
| - $code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8WorkerContextErrorHandler>(value, true)";
|
| - } elsif ($interfaceName eq "DOMWindow" and $attribute->signature->name eq "onerror") {
|
| - AddToImplIncludes("bindings/v8/V8WindowErrorHandler.h");
|
| - $code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8WindowErrorHandler>(value, true)";
|
| + if (($interfaceName eq "DOMWindow" or $interfaceName eq "WorkerContext") and $attribute->signature->name eq "onerror") {
|
| + AddToImplIncludes("bindings/v8/V8ErrorHandler.h");
|
| + $code .= " imp->set$implSetterFunctionName(V8EventListenerList::findOrCreateWrapper<V8ErrorHandler>(value, true)";
|
| } else {
|
| $code .= " imp->set$implSetterFunctionName(V8EventListenerList::getEventListener(value, true, ListenerFindOrCreate)";
|
| }
|
|
|