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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp

Issue 2350813005: bindings: Support sequence in callback function arguments (Closed)
Patch Set: rebase Created 4 years, 3 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
Index: third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp
index b27bdc9509b56f941c4d1d6f92523765e506f590..4275c8e3e7d3e5628398d60f2b3249ea19c30986 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8LongExperimentalCallbackFunction.cpp
@@ -26,13 +26,14 @@ DEFINE_TRACE(V8LongExperimentalCallbackFunction)
{
}
-bool V8LongExperimentalCallbackFunction::call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, int num1, int num2, int& returnValue)
+bool V8LongExperimentalCallbackFunction::call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, ExceptionState& exceptionState, int num1, int num2, int& returnValue)
{
if (!scriptState->contextIsValid())
return false;
if (m_callback.isEmpty())
return false;
+
ScriptState::Scope scope(scriptState);
v8::Local<v8::Value> num1Argument = v8::Integer::New(scriptState->isolate(), num1);
@@ -48,7 +49,7 @@ bool V8LongExperimentalCallbackFunction::call(ScriptState* scriptState, ScriptWr
if (V8ScriptRunner::callFunction(m_callback.newLocal(scriptState->isolate()), scriptState->getExecutionContext(), thisValue, 2, argv, scriptState->isolate()).ToLocal(&v8ReturnValue))
{
- int cppValue = toInt32(info.GetIsolate(), v8ReturnValue, NormalConversion, exceptionState);
+ int cppValue = toInt32(scriptState->isolate(), v8ReturnValue, NormalConversion, exceptionState);
if (exceptionState.hadException())
return false;
returnValue = cppValue;

Powered by Google App Engine
This is Rietveld 408576698