Chromium Code Reviews| Index: Source/bindings/v8/ExceptionMessages.cpp |
| diff --git a/Source/bindings/v8/ExceptionMessages.cpp b/Source/bindings/v8/ExceptionMessages.cpp |
| index 83e37797956b61a2f8990435dc0599cdbe5d04d8..067daf289fa260055274afa529f55808def7219b 100644 |
| --- a/Source/bindings/v8/ExceptionMessages.cpp |
| +++ b/Source/bindings/v8/ExceptionMessages.cpp |
| @@ -81,6 +81,11 @@ String ExceptionMessages::failedToDeleteIndexed(const String& type, const String |
| return "Failed to delete an indexed property from '" + type + "': " + detail; |
| } |
| +String ExceptionMessages::constructorNotCallableAsFunction(const String& type) |
| +{ |
| + return "Failed to construct '" + type + "': Please use the 'new' operator, this DOM object constructor cannot be called as a function."; |
|
Nils Barth (inactive)
2014/03/26 06:31:27
Shouldn't this instead call failedToConstruct
with
sof
2014/03/26 07:37:39
Yes, better that way. Done.
|
| +} |
| + |
| String ExceptionMessages::incorrectPropertyType(const String& property, const String& detail) |
| { |
| return "The '" + property + "' property " + detail; |