| Index: Source/bindings/templates/interface.cpp
|
| diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp
|
| index a461c6c644f170dac361ba4c24e5ac39b059a4f6..7cf372a5dc18ef95eacb24c88a43f08386b292f5 100644
|
| --- a/Source/bindings/templates/interface.cpp
|
| +++ b/Source/bindings/templates/interface.cpp
|
| @@ -523,13 +523,13 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {# Invalid arity, throw error #}
|
| {# Report full list of valid arities if gaps and above minimum #}
|
| {% if constructor_overloads.valid_arities %}
|
| - if (info.Length() >= {{constructor_overloads.minarg}}) {
|
| + if (info.Length() >= {{constructor_overloads.length}}) {
|
| throwArityTypeError(exceptionState, "{{constructor_overloads.valid_arities}}", info.Length());
|
| return;
|
| }
|
| {% endif %}
|
| {# Otherwise just report "not enough arguments" #}
|
| - exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments({{constructor_overloads.minarg}}, info.Length()));
|
| + exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments({{constructor_overloads.length}}, info.Length()));
|
| exceptionState.throwIfNeeded();
|
| return;
|
| }
|
|
|