| Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| index b110469250e0e1676144ab3ebe8edfcb9ca6183a..e3c3d5e5334d26eb1317a42806260af8af38f4ae 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| @@ -32,8 +32,9 @@ static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
|
| V8StringResource<> value;
|
| {
|
| value = info[0];
|
| - if (!value.prepare())
|
| + if (!value.prepare()) {
|
| return;
|
| + }
|
| }
|
| TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value);
|
| }
|
| @@ -54,7 +55,6 @@ static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|
| @@ -63,8 +63,9 @@ static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
|
| V8StringResource<> value;
|
| {
|
| value = info[0];
|
| - if (!value.prepare())
|
| + if (!value.prepare()) {
|
| return;
|
| + }
|
| }
|
| TestInterfacePartial3Implementation::staticVoidMethodPartialOverload(value);
|
| }
|
| @@ -85,7 +86,6 @@ static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|
| @@ -120,6 +120,7 @@ static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| + exceptionState.clearException();
|
| return;
|
| }
|
|
|
| @@ -128,8 +129,9 @@ static void staticPromiseMethodPartialOverload2MethodPromise(const v8::FunctionC
|
| V8StringResource<> value;
|
| {
|
| value = info[0];
|
| - if (!value.prepare(exceptionState))
|
| + if (!value.prepare(exceptionState)) {
|
| return;
|
| + }
|
| }
|
| v8SetReturnValue(info, TestInterfacePartial3Implementation::staticPromiseMethodPartialOverload(value).v8Value());
|
| }
|
| @@ -159,6 +161,7 @@ static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
|
| + exceptionState.clearException();
|
| return;
|
| }
|
|
|
| @@ -168,8 +171,9 @@ static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
|
| V8StringResource<> value;
|
| {
|
| value = info[0];
|
| - if (!value.prepare())
|
| + if (!value.prepare()) {
|
| return;
|
| + }
|
| }
|
| TestInterfacePartial3Implementation::partial2VoidMethod(*impl, value);
|
| }
|
| @@ -208,7 +212,6 @@ static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|
| @@ -217,21 +220,20 @@ static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoidTestEnumModulesArgMethod", "TestInterface", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| setMinimumArityTypeError(exceptionState, 1, info.Length());
|
| - exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
|
| V8StringResource<> arg;
|
| {
|
| arg = info[0];
|
| - if (!arg.prepare())
|
| + if (!arg.prepare()) {
|
| return;
|
| + }
|
| const char* validValues[] = {
|
| "EnumModulesValue1",
|
| "EnumModulesValue2",
|
| };
|
| if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestEnumModules", exceptionState)) {
|
| - exceptionState.throwIfNeeded();
|
| return;
|
| }
|
| }
|
| @@ -248,8 +250,9 @@ static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
|
| V8StringResource<> value;
|
| {
|
| value = info[0];
|
| - if (!value.prepare())
|
| + if (!value.prepare()) {
|
| return;
|
| + }
|
| }
|
| TestInterfacePartial3Implementation::partial2StaticVoidMethod(value);
|
| }
|
| @@ -270,7 +273,6 @@ static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
|
| break;
|
| }
|
| exceptionState.throwTypeError("No function was found that matched the signature provided.");
|
| - exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|
|
|