| Index: Source/bindings/tests/results/V8TestOverloadedConstructors.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestOverloadedConstructors.cpp b/Source/bindings/tests/results/V8TestOverloadedConstructors.cpp
|
| index df1d6498f51b13de61589b93bb253ff70529d326..c543682503cc9b05abda7cac7418e87f3a93c9ce 100644
|
| --- a/Source/bindings/tests/results/V8TestOverloadedConstructors.cpp
|
| +++ b/Source/bindings/tests/results/V8TestOverloadedConstructors.cpp
|
| @@ -122,6 +122,7 @@ static void constructor4(const v8::FunctionCallbackInfo<v8::Value>& info)
|
|
|
| static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| + ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestOverloadedConstructors", info.Holder(), info.GetIsolate());
|
| if (((info.Length() == 1) && (V8ArrayBuffer::hasInstance(info[0], info.GetIsolate(), worldType(info.GetIsolate()))))) {
|
| TestOverloadedConstructorsV8Internal::constructor1(info);
|
| return;
|
| @@ -139,11 +140,11 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| return;
|
| }
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - throwTypeError(ExceptionMessages::failedToConstruct("TestOverloadedConstructors", ExceptionMessages::notEnoughArguments(1, info.Length())), info.GetIsolate());
|
| + exceptionState.notEnoughArguments(1, info.Length());
|
| return;
|
| }
|
| - throwTypeError(ExceptionMessages::failedToConstruct("TestOverloadedConstructors", "No matching constructor signature."), info.GetIsolate());
|
| - return;
|
| + exceptionState.throwTypeError("No matching constructor signature.");
|
| + exceptionState.throwIfNeeded();
|
| }
|
|
|
| } // namespace TestOverloadedConstructorsV8Internal
|
|
|