| Index: Source/bindings/templates/methods.cpp
|
| diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp
|
| index 4e5eed4988e95acdb2d0073c444d2cdac3486994..5033ad4fd1b99449b4b992572f92ba912b8ac755 100644
|
| --- a/Source/bindings/templates/methods.cpp
|
| +++ b/Source/bindings/templates/methods.cpp
|
| @@ -573,7 +573,7 @@ static void {{name}}(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {% endif %}
|
| {# Overloaded constructors have length checked during overload resolution #}
|
| {% if constructor.number_of_required_arguments and not constructor.overload_index %}
|
| - if (info.Length() < {{constructor.number_of_required_arguments}}) {
|
| + if (UNLIKELY(info.Length() < {{constructor.number_of_required_arguments}})) {
|
| {{throw_minimum_arity_type_error(constructor, constructor.number_of_required_arguments)}};
|
| return;
|
| }
|
|
|