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/modules/V8TestInterface2Partial.cpp

Issue 2301993002: binding: Introduces ExceptionToPromiseScope. (Closed)
Patch Set: . 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/modules/V8TestInterface2Partial.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp
index 7c74ee7aa883f868328b31b0ce245d01564b4a65..72cc8e578c2755d2623ae1ef6dd726f22a65e5cf 100644
--- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp
@@ -26,10 +26,12 @@ namespace TestInterface2PartialV8Internal {
static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (UNLIKELY(info.Length() < 1)) {
- V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodPartial1", "TestInterface2", 1, info.Length()));
+ throwMinimumArityErrorForMethod(info.GetIsolate(), "TestInterface2", "voidMethodPartial1", 1, info.Length());
return;
}
+
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
+
V8StringResource<> value;
{
value = info[0];
@@ -47,10 +49,12 @@ static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::
static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
{
if (UNLIKELY(info.Length() < 1)) {
- V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTypeErrorForMethod(info.GetIsolate(), "voidMethodPartial2", "TestInterface2", 1, info.Length()));
+ throwMinimumArityErrorForMethod(info.GetIsolate(), "TestInterface2", "voidMethodPartial2", 1, info.Length());
return;
}
+
TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
+
V8StringResource<> value;
{
value = info[0];

Powered by Google App Engine
This is Rietveld 408576698