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

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

Issue 136333007: DevTools: Implement evaluation on async call frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased Created 6 years, 11 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/v8/ScriptFunctionCall.h ('k') | Source/core/inspector/InjectedScript.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ScriptFunctionCall.cpp
diff --git a/Source/bindings/v8/ScriptFunctionCall.cpp b/Source/bindings/v8/ScriptFunctionCall.cpp
index e8c618e9030b3f50812628aa98862d6f0055a782..6c2ba171cd3697151cf43e9b23dba233c649103c 100644
--- a/Source/bindings/v8/ScriptFunctionCall.cpp
+++ b/Source/bindings/v8/ScriptFunctionCall.cpp
@@ -113,6 +113,16 @@ void ScriptCallArgumentHandler::appendArgument(bool argument)
m_arguments.append(ScriptValue(v8Boolean(argument, isolate), isolate));
}
+void ScriptCallArgumentHandler::appendArgument(const Vector<ScriptValue>& argument)
+{
+ v8::Isolate* isolate = m_scriptState->isolate();
+ ScriptScope scope(m_scriptState);
+ v8::Handle<v8::Array> result = v8::Array::New(isolate, argument.size());
+ for (size_t i = 0; i < argument.size(); ++i)
+ result->Set(v8::Integer::New(isolate, i), argument[i].v8Value());
+ m_arguments.append(ScriptValue(result, isolate));
+}
+
ScriptFunctionCall::ScriptFunctionCall(const ScriptObject& thisObject, const String& name)
: ScriptCallArgumentHandler(thisObject.scriptState())
, m_thisObject(thisObject)
« no previous file with comments | « Source/bindings/v8/ScriptFunctionCall.h ('k') | Source/core/inspector/InjectedScript.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698