Index: Source/bindings/tests/results/V8SupportTestInterface.cpp |
diff --git a/Source/bindings/tests/results/V8SupportTestInterface.cpp b/Source/bindings/tests/results/V8SupportTestInterface.cpp |
index 9cc3949d60c8b716eff24ca8cf83849fe772ad28..393ddd7a299a1a2af5d3385077fc278fba14a061 100644 |
--- a/Source/bindings/tests/results/V8SupportTestInterface.cpp |
+++ b/Source/bindings/tests/results/V8SupportTestInterface.cpp |
@@ -321,7 +321,8 @@ static void supplementalMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& |
{ |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "supplementalMethod2", "SupportTestInterface", info.Holder(), info.GetIsolate()); |
if (UNLIKELY(info.Length() < 2)) { |
- throwTypeError(ExceptionMessages::failedToExecute("supplementalMethod2", "SupportTestInterface", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsolate()); |
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length())); |
+ exceptionState.throwIfNeeded(); |
return; |
} |
SupportTestInterface* imp = V8SupportTestInterface::toNative(info.Holder()); |