| Index: Source/bindings/v8/ExceptionMessages.cpp
|
| diff --git a/Source/bindings/v8/ExceptionMessages.cpp b/Source/bindings/v8/ExceptionMessages.cpp
|
| index 613fa571b68ca394f17877c4bbc436168e2bbd4a..f8e071bb7933377b994ba7ce9bea08344eab4508 100644
|
| --- a/Source/bindings/v8/ExceptionMessages.cpp
|
| +++ b/Source/bindings/v8/ExceptionMessages.cpp
|
| @@ -62,7 +62,12 @@ String ExceptionMessages::failedToDelete(const String& property, const String& t
|
|
|
| String ExceptionMessages::incorrectPropertyType(const String& property, const String& detail)
|
| {
|
| - return "The '" + property + "' property " + detail;
|
| + return "The '" + property + "' property " + (!detail.isEmpty() ? detail : "does not have the expected type.");
|
| +}
|
| +
|
| +String ExceptionMessages::incorrectArgumentType(int argumentIndex, const String& detail)
|
| +{
|
| + return "The " + ordinalNumber(argumentIndex) + " argument " + (!detail.isEmpty() ? detail : "does not have the expected type.");
|
| }
|
|
|
| String ExceptionMessages::notAnArrayTypeArgumentOrValue(int argumentIndex)
|
|
|