Index: Source/bindings/tests/results/V8TestInterface.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterface.cpp b/Source/bindings/tests/results/V8TestInterface.cpp |
index b6a8f1188c918b7f8473f806475676cd2ef8e78d..4775ac9baf6ae1a7c282468ba5ab83296519bdda 100644 |
--- a/Source/bindings/tests/results/V8TestInterface.cpp |
+++ b/Source/bindings/tests/results/V8TestInterface.cpp |
@@ -812,8 +812,10 @@ static void implementsComplexMethodMethod(const v8::FunctionCallbackInfo<v8::Val |
V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[1])); |
ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()); |
RefPtr<TestInterfaceEmpty> result = impl->implementsComplexMethod(scriptContext, strArg, testInterfaceEmptyArg, exceptionState); |
- if (exceptionState.throwIfNeeded()) |
+ if (exceptionState.hadException()) { |
+ exceptionState.throwIfNeeded(); |
return; |
+ } |
v8SetReturnValue(info, result.release()); |
} |
@@ -949,8 +951,10 @@ static void partialCallWithExecutionContextRaisesExceptionVoidMethodMethod(const |
ASSERT(impl); |
ExecutionContext* scriptContext = currentExecutionContext(info.GetIsolate()); |
TestPartialInterface::partialCallWithExecutionContextRaisesExceptionVoidMethod(scriptContext, *impl, exceptionState); |
- if (exceptionState.throwIfNeeded()) |
+ if (exceptionState.hadException()) { |
+ exceptionState.throwIfNeeded(); |
return; |
+ } |
} |
#endif // ENABLE(PARTIAL_CONDITION) |