| Index: Source/bindings/tests/results/V8TestInterface2.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterface2.cpp b/Source/bindings/tests/results/V8TestInterface2.cpp
|
| index 2e262406df739b196628e1b95330da548c6acaab..7a83bcbf5d3e166e8c29685f7196d0e167d43546 100644
|
| --- a/Source/bindings/tests/results/V8TestInterface2.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterface2.cpp
|
| @@ -52,8 +52,7 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "TestInterface2", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| + throwArityTypeError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| @@ -75,8 +74,7 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", "TestInterface2", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| + throwArityTypeError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| @@ -99,8 +97,7 @@ static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteItem", "TestInterface2", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| + throwArityTypeError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| @@ -122,8 +119,7 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "namedItem", "TestInterface2", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| + throwArityTypeError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| @@ -145,8 +141,7 @@ static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "setNamedItem", "TestInterface2", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 2)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(2, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| + throwArityTypeError(exceptionState, 2, info.Length());
|
| return;
|
| }
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
| @@ -169,8 +164,7 @@ static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
|
| {
|
| ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteNamedItem", "TestInterface2", info.Holder(), info.GetIsolate());
|
| if (UNLIKELY(info.Length() < 1)) {
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
|
| - exceptionState.throwIfNeeded();
|
| + throwArityTypeError(exceptionState, 1, info.Length());
|
| return;
|
| }
|
| TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
|
|
|