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

Unified Diff: Source/bindings/tests/results/V8TestInterface.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Feedback. Created 7 years 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: Source/bindings/tests/results/V8TestInterface.cpp
diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp
index 42f7012230b86c038016549216449e44c4a506ac..cd1a3c6881b86b15693cf1855573cda0d3b2f6fb 100644
--- a/Source/bindings/tests/results/V8TestInterface.cpp
+++ b/Source/bindings/tests/results/V8TestInterface.cpp
@@ -546,6 +546,7 @@ static void Node15AttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::V
static void implementsMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsMethod1", "TestInterface", info.Holder(), info.GetIsolate());
TestInterface* imp = V8TestInterface::toNative(info.Holder());
TestImplements::implementsMethod1(imp);
}
@@ -559,12 +560,12 @@ static void implementsMethod1MethodCallback(const v8::FunctionCallbackInfo<v8::V
static void implementsMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsMethod2", "TestInterface", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 2)) {
throwTypeError(ExceptionMessages::failedToExecute("implementsMethod2", "TestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
TestInterface* imp = V8TestInterface::toNative(info.Holder());
- ExceptionState exceptionState(info.Holder(), info.GetIsolate());
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0);
ExecutionContext* scriptContext = getExecutionContext();
@@ -590,6 +591,7 @@ static void implementsMethod3MethodCallback(const v8::FunctionCallbackInfo<v8::V
static void implementsMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "implementsMethod4", "TestInterface", info.Holder(), info.GetIsolate());
TestImplements::implementsMethod4();
}
@@ -603,6 +605,7 @@ static void implementsMethod4MethodCallback(const v8::FunctionCallbackInfo<v8::V
#if ENABLE(Condition11) || ENABLE(Condition12)
static void supplementalMethod1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod1", "TestInterface", info.Holder(), info.GetIsolate());
TestInterface* imp = V8TestInterface::toNative(info.Holder());
TestPartialInterface::supplementalMethod1(imp);
}
@@ -620,12 +623,12 @@ static void supplementalMethod1MethodCallback(const v8::FunctionCallbackInfo<v8:
#if ENABLE(Condition11) || ENABLE(Condition12)
static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod2", "TestInterface", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 2)) {
throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "TestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate());
return;
}
TestInterface* imp = V8TestInterface::toNative(info.Holder());
- ExceptionState exceptionState(info.Holder(), info.GetIsolate());
V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, strArg, info[0]);
V8TRYCATCH_VOID(TestObj*, objArg, V8TestObject::hasInstance(info[1], info.GetIsolate(), worldType(info.GetIsolate())) ? V8TestObject::toNative(v8::Handle<v8::Object>::Cast(info[1])) : 0);
ExecutionContext* scriptContext = getExecutionContext();
@@ -657,6 +660,7 @@ static void supplementalMethod3MethodCallback(const v8::FunctionCallbackInfo<v8:
#if ENABLE(Condition11) || ENABLE(Condition12)
static void supplementalMethod4Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
+ ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod4", "TestInterface", info.Holder(), info.GetIsolate());
TestPartialInterface::supplementalMethod4();
}
#endif // ENABLE(Condition11) || ENABLE(Condition12)

Powered by Google App Engine
This is Rietveld 408576698