| Index: Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| diff --git a/Source/bindings/core/v8/ScriptFunctionCall.cpp b/Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| index 8c57259efbfb29ac66e37ff293a55b76bf23057f..56e4fe369c2a3c9b77539b482aa07c2a9e35981d 100644
|
| --- a/Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| +++ b/Source/bindings/core/v8/ScriptFunctionCall.cpp
|
| @@ -138,4 +138,17 @@ ScriptValue ScriptFunctionCall::callWithoutExceptionHandling()
|
| return ScriptValue(m_scriptState.get(), result);
|
| }
|
|
|
| +v8::Handle<v8::Function> ScriptFunctionCall::function()
|
| +{
|
| + v8::TryCatch tryCatch;
|
| + v8::Local<v8::Object> thisObject = v8::Local<v8::Object>::Cast(m_thisObject.v8Value());
|
| + v8::Local<v8::Value> value;
|
| + if (!thisObject->Get(m_scriptState->context(), v8String(m_scriptState->isolate(), m_name)).ToLocal(&value))
|
| + return v8::Handle<v8::Function>();
|
| +
|
| + ASSERT(value->IsFunction());
|
| + return v8::Local<v8::Function>::Cast(value);
|
| +}
|
| +
|
| +
|
| } // namespace blink
|
|
|