Index: Source/bindings/v8/ExceptionMessages.cpp |
diff --git a/Source/bindings/v8/ExceptionMessages.cpp b/Source/bindings/v8/ExceptionMessages.cpp |
index 6106e6d0d5a063eae70cc3143d5aeb90c11501df..c65e04703d4ec9fe889fba651139e02a5c4e85b9 100644 |
--- a/Source/bindings/v8/ExceptionMessages.cpp |
+++ b/Source/bindings/v8/ExceptionMessages.cpp |
@@ -91,6 +91,11 @@ String ExceptionMessages::incorrectPropertyType(const String& property, const St |
return "The '" + property + "' property " + detail; |
} |
+String ExceptionMessages::invalidArity(const char* expected, unsigned provided) |
+{ |
+ return "Valid arities are: " + String(expected) + ", but " + String::number(provided) + " arguments provided."; |
+} |
+ |
String ExceptionMessages::argumentNullOrIncorrectType(int argumentIndex, const String& expectedType) |
{ |
return "The " + ordinalNumber(argumentIndex) + " argument provided is either null, or an invalid " + expectedType + " object."; |