| Index: Source/bindings/scripts/code_generator_v8.pm
|
| diff --git a/Source/bindings/scripts/code_generator_v8.pm b/Source/bindings/scripts/code_generator_v8.pm
|
| index 5c4a4e4a5acc3176d3432509cec33691bb9ae698..2d504ed9f139d303908b49e2b52fcb17d0668218 100644
|
| --- a/Source/bindings/scripts/code_generator_v8.pm
|
| +++ b/Source/bindings/scripts/code_generator_v8.pm
|
| @@ -1729,8 +1729,8 @@ END
|
| $functionName = "imp->${functionName}";
|
| }
|
| push(@arguments, "isolatedWorldForIsolate(info.GetIsolate())");
|
| - $code .= " EventListener* jsValue = ${functionName}(" . join(", ", @arguments) . ");\n";
|
| - $code .= " v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate())));\n";
|
| + $code .= " RefPtr<EventListener> listener = ${functionName}(" . join(", ", @arguments) . ");\n";
|
| + $code .= " v8SetReturnValue(info, listener);\n";
|
| } else {
|
| my $nativeValue = NativeToJSValue($attribute->type, $attribute->extendedAttributes, $expression, " ", "", "info.GetIsolate()", "info", "imp", $forMainWorldSuffix, "return");
|
| $code .= "${nativeValue}\n";
|
|
|