Index: Source/bindings/core/v8/V8LazyEventListener.cpp |
diff --git a/Source/bindings/core/v8/V8LazyEventListener.cpp b/Source/bindings/core/v8/V8LazyEventListener.cpp |
index 09c21574b18ed798c53affdd090a9283f78b2c4a..81f134dec1138b514b65df15304bafbc5f31ef29 100644 |
--- a/Source/bindings/core/v8/V8LazyEventListener.cpp |
+++ b/Source/bindings/core/v8/V8LazyEventListener.cpp |
@@ -188,8 +188,8 @@ void V8LazyEventListener::prepareListenerObject(ExecutionContext* executionConte |
return; |
// FIXME: Remove this code when we stop doing the 'with' hack above. |
- v8::Local<v8::Value> innerValue = V8ScriptRunner::callInternalFunction(intermediateFunction, thisObject, 0, 0, isolate()); |
- if (innerValue.IsEmpty() || !innerValue->IsFunction()) |
+ v8::Local<v8::Value> innerValue; |
+ if (!V8ScriptRunner::callInternalFunction(intermediateFunction, thisObject, 0, 0, isolate()).ToLocal(&innerValue) || !innerValue->IsFunction()) |
return; |
v8::Local<v8::Function> wrappedFunction = innerValue.As<v8::Function>(); |