Index: Source/bindings/tests/results/V8TestObject.cpp |
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp |
index 368d275ddbed9db5bf3ddfd3540db3a5f7bc2e03..c1d642c2ce4ba67b13fc2f56c55a5b75dcc07961 100644 |
--- a/Source/bindings/tests/results/V8TestObject.cpp |
+++ b/Source/bindings/tests/results/V8TestObject.cpp |
@@ -447,8 +447,8 @@ static void stringAttrAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v |
static void eventHandlerAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) |
{ |
TestObj* imp = V8TestObject::toNative(info.Holder()); |
- EventListener* jsValue = imp->eventHandlerAttr(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 = imp->eventHandlerAttr(isolatedWorldForIsolate(info.GetIsolate())); |
+ v8SetReturnValue(info, listener); |
} |
static void eventHandlerAttrAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |