| Index: Source/bindings/tests/results/V8TestInterface2.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterface2.cpp b/Source/bindings/tests/results/V8TestInterface2.cpp
|
| index f77a8262892b3ab0ca2743a8ac540edda8f79d69..70bf888b644b81e94ef216ec7dbe7414ddc64571 100644
|
| --- a/Source/bindings/tests/results/V8TestInterface2.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterface2.cpp
|
| @@ -58,8 +58,10 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| V8TRYCATCH_EXCEPTION_VOID(unsigned, index, toUInt32(info[0], exceptionState), exceptionState);
|
| RefPtr<TestInterfaceEmpty> result = impl->item(index, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| + }
|
| v8SetReturnValue(info, result.release());
|
| }
|
|
|
| @@ -81,8 +83,10 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| V8TRYCATCH_EXCEPTION_VOID(unsigned, index, toUInt32(info[0], exceptionState), exceptionState);
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, value, info[1]);
|
| String result = impl->setItem(index, value, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| + }
|
| v8SetReturnValueString(info, result, info.GetIsolate());
|
| }
|
|
|
| @@ -103,8 +107,10 @@ static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| V8TRYCATCH_EXCEPTION_VOID(unsigned, index, toUInt32(info[0], exceptionState), exceptionState);
|
| bool result = impl->deleteItem(index, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| + }
|
| v8SetReturnValueBool(info, result);
|
| }
|
|
|
| @@ -125,8 +131,10 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
|
| RefPtr<TestInterfaceEmpty> result = impl->namedItem(name, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| + }
|
| v8SetReturnValue(info, result.release());
|
| }
|
|
|
| @@ -148,8 +156,10 @@ static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, value, info[1]);
|
| String result = impl->setNamedItem(name, value, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| + }
|
| v8SetReturnValueString(info, result, info.GetIsolate());
|
| }
|
|
|
| @@ -170,8 +180,10 @@ static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, name, info[0]);
|
| bool result = impl->deleteNamedItem(name, exceptionState);
|
| - if (exceptionState.throwIfNeeded())
|
| + if (exceptionState.hadException()) {
|
| + exceptionState.throwIfNeeded();
|
| return;
|
| + }
|
| v8SetReturnValueBool(info, result);
|
| }
|
|
|
|
|