Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index f0d5616708ad20b443fc3dadc23edbe5fba6bb08..f53d7ab137c2576d4be9c8f52c4233e293fd4468 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -138,8 +138,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
{% if constructor_arguments %} |
{# FIXME: support optional arguments #} |
{% set number_of_arguments = constructor_arguments|length %} |
- {# FIXME: remove this UNLIKELY: constructors are heavy, so no difference. #} |
- if (UNLIKELY(info.Length() < {{number_of_arguments}})) { |
+ if (info.Length() < {{number_of_arguments}}) { |
throwTypeError(ExceptionMessages::failedToExecute("Constructor", "{{interface_name}}", ExceptionMessages::notEnoughArguments({{number_of_arguments}}, info.Length())), info.GetIsolate()); |
return; |
} |