Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Unified Diff: Source/bindings/core/v8/ScriptFunctionCall.cpp

Issue 1104233004: DevTools: rebaseline inspector tests with poor expectations (2). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaselined Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/core/v8/ScriptFunctionCall.h ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/bindings/core/v8/ScriptFunctionCall.h ('k') | Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698