Index: Source/bindings/tests/results/V8TestInterface.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp |
index 9b180d065b6bc12b4867739ca4cacb510fa7ba51..1ee36bd48cb653d5ab864ffe66e3e072e2d00c04 100644 |
--- a/Source/bindings/tests/results/V8TestInterface.cpp |
+++ b/Source/bindings/tests/results/V8TestInterface.cpp |
@@ -201,8 +201,8 @@ static void implementsNodeAttributeSetterCallback(v8::Local<v8::String>, v8::Loc |
static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestInterface* imp = V8TestInterface::toNative(info.Holder()); |
- EventListener* jsValue = TestImplements::eventHandlerAttribute(imp, isolatedWorldForIsolate(info.GetIsolate())); |
- v8SetReturnValue(info, jsValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(jsValue)->getListenerObject(imp->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()))); |
+ RefPtr<EventListener> listener = TestImplements::eventHandlerAttribute(imp, isolatedWorldForIsolate(info.GetIsolate())); |
+ v8SetReturnValue(info, listener); |
} |
static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |