Index: Source/bindings/tests/results/V8TestInterfaceNode.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceNode.cpp b/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
index c0a2179d43e3ee4e5da0a9f7feb904fed3c415b4..270976838351be567bb42d5e34fe38c61c609d26 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceNode.cpp |
@@ -94,8 +94,8 @@ static void eventHandlerAttributeAttributeGetter(const v8::PropertyCallbackInfo< |
{ |
v8::Handle<v8::Object> holder = info.Holder(); |
TestInterfaceNode* impl = V8TestInterfaceNode::toNative(holder); |
- EventListener* v8Value = impl->eventHandlerAttribute(); |
- v8SetReturnValue(info, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()))); |
+ EventListener* cppValue(impl->eventHandlerAttribute()); |
+ v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListener::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v8::Value>(v8::Null(info.GetIsolate()))); |
} |
static void eventHandlerAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) |