Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 2d57472fc9ba1c836ddd6ac3f0e5d0faffd4c34a..d38cb7ec0a8a8383c89173da6a20ba04c59bf83f 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -11,7 +11,7 @@ static void {{method.name}}{{method.overload_index}}Method{{world_suffix}}(const |
{{add_remove_event_listener_method(method.name) | indent}} |
{% else %} |
{% if method.number_of_required_arguments %} |
- if (UNLIKELY(info.Length() < {{method.number_of_required_arguments}})) { |
+ if (info.Length() < {{method.number_of_required_arguments}}) { |
throwTypeError(ExceptionMessages::failedToExecute("{{method.name}}", "{{interface_name}}", ExceptionMessages::notEnoughArguments({{method.number_of_required_arguments}}, info.Length())), info.GetIsolate()); |
return; |
} |