| Index: Source/bindings/core/v8/V8EventListener.cpp
|
| diff --git a/Source/bindings/core/v8/V8EventListener.cpp b/Source/bindings/core/v8/V8EventListener.cpp
|
| index 19b38366b2013bdcfb8edcb6f0c786523dcf3fe6..e660b6e4a363f532c9a54ba7eb057d5beeaf5729 100644
|
| --- a/Source/bindings/core/v8/V8EventListener.cpp
|
| +++ b/Source/bindings/core/v8/V8EventListener.cpp
|
| @@ -91,7 +91,10 @@ v8::Local<v8::Value> V8EventListener::callListenerFunction(ScriptState* scriptSt
|
| return v8::Local<v8::Value>();
|
|
|
| v8::Local<v8::Value> parameters[1] = { jsEvent };
|
| - return frame->script().callFunction(handlerFunction, receiver, WTF_ARRAY_LENGTH(parameters), parameters);
|
| + v8::Local<v8::Value> result;
|
| + if (!frame->script().callFunction(handlerFunction, receiver, WTF_ARRAY_LENGTH(parameters), parameters).ToLocal(&result))
|
| + return v8::Local<v8::Value>();
|
| + return result;
|
| }
|
|
|
| } // namespace blink
|
|
|