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

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

Issue 304223007: Use auto-rethrowing v8::TryCatch variant (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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: Source/bindings/tests/results/V8TestTypedefs.cpp
diff --git a/Source/bindings/tests/results/V8TestTypedefs.cpp b/Source/bindings/tests/results/V8TestTypedefs.cpp
index eb3418e9fa32ca8749756f432edfaab8b762af24..3eb973c8aa8be0ea2f57e31452a5910c875e6cf9 100644
--- a/Source/bindings/tests/results/V8TestTypedefs.cpp
+++ b/Source/bindings/tests/results/V8TestTypedefs.cpp
@@ -102,7 +102,7 @@ static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
Vector<int> arrayOfLongsArg;
{
- v8::TryCatch block;
+ V8TryPropagate block;
if (UNLIKELY(info.Length() <= 0)) {
impl->voidMethodArrayOfLongsArg();
return;
@@ -129,7 +129,7 @@ static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
float floatArg;
V8StringResource<> stringArg;
{
- v8::TryCatch block;
+ V8TryPropagate block;
TONATIVE_VOID_INTERNAL(floatArg, static_cast<float>(info[0]->NumberValue()));
TOSTRING_VOID_INTERNAL(stringArg, info[1]);
}
@@ -177,7 +177,7 @@ static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
Vector<RefPtr<TestInterfaceEmpty> > testInterfaceEmptyTypeSequenceArg;
{
- v8::TryCatch block;
+ V8TryPropagate block;
TONATIVE_VOID_INTERNAL(testInterfaceEmptyTypeSequenceArg, (toRefPtrNativeArray<TestInterfaceEmpty, V8TestInterfaceEmpty>(info[0], 1, info.GetIsolate())));
}
v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfaceEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg)));
@@ -225,7 +225,7 @@ static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
Vector<String> arrayOfStringsArg;
{
- v8::TryCatch block;
+ V8TryPropagate block;
TONATIVE_VOID_INTERNAL(arrayOfStringsArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
}
v8SetReturnValue(info, v8Array(impl->arrayOfStringsMethodArrayOfStringsArg(arrayOfStringsArg), info.Holder(), info.GetIsolate()));
@@ -247,7 +247,7 @@ static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
TestTypedefs* impl = V8TestTypedefs::toNative(info.Holder());
Vector<String> stringArrayArg;
{
- v8::TryCatch block;
+ V8TryPropagate block;
TONATIVE_VOID_INTERNAL(stringArrayArg, toNativeArray<String>(info[0], 1, info.GetIsolate()));
}
v8SetReturnValue(info, v8Array(impl->stringArrayMethodStringArrayArg(stringArrayArg), info.Holder(), info.GetIsolate()));
@@ -269,7 +269,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
}
V8StringResource<> stringArg;
{
- TOSTRING_VOID_INTERNAL_NOTRYCATCH(stringArg, info[0]);
+ TOSTRING_VOID_INTERNAL(stringArg, info[0]);
}
RefPtr<TestTypedefs> impl = TestTypedefs::create(stringArg);

Powered by Google App Engine
This is Rietveld 408576698