Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Unified Diff: Source/bindings/v8/ExceptionMessages.cpp

Issue 163883006: Add context to generated named and indexed property operations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Ugh. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/bindings/v8/ExceptionMessages.h ('k') | Source/bindings/v8/ExceptionState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/ExceptionMessages.cpp
diff --git a/Source/bindings/v8/ExceptionMessages.cpp b/Source/bindings/v8/ExceptionMessages.cpp
index 83962ba057188a54b6bb6101d9b8d85bce7c06eb..83e37797956b61a2f8990435dc0599cdbe5d04d8 100644
--- a/Source/bindings/v8/ExceptionMessages.cpp
+++ b/Source/bindings/v8/ExceptionMessages.cpp
@@ -41,6 +41,11 @@ String ExceptionMessages::failedToConstruct(const String& type, const String& de
return "Failed to construct '" + type + (!detail.isEmpty() ? String("': " + detail) : String("'"));
}
+String ExceptionMessages::failedToEnumerate(const String& type, const String& detail)
+{
+ return "Failed to enumerate the properties of '" + type + (!detail.isEmpty() ? String("': " + detail) : String("'"));
+}
+
String ExceptionMessages::failedToExecute(const String& method, const String& type, const String& detail)
{
return "Failed to execute '" + method + "' on '" + type + (!detail.isEmpty() ? String("': " + detail) : String("'"));
@@ -61,6 +66,21 @@ String ExceptionMessages::failedToDelete(const String& property, const String& t
return "Failed to delete the '" + property + "' property from '" + type + "': " + detail;
}
+String ExceptionMessages::failedToGetIndexed(const String& type, const String& detail)
+{
+ return "Failed to read an indexed property from '" + type + "': " + detail;
+}
+
+String ExceptionMessages::failedToSetIndexed(const String& type, const String& detail)
+{
+ return "Failed to set an indexed property on '" + type + "': " + detail;
+}
+
+String ExceptionMessages::failedToDeleteIndexed(const String& type, const String& detail)
+{
+ return "Failed to delete an indexed property from '" + type + "': " + detail;
+}
+
String ExceptionMessages::incorrectPropertyType(const String& property, const String& detail)
{
return "The '" + property + "' property " + detail;
« no previous file with comments | « Source/bindings/v8/ExceptionMessages.h ('k') | Source/bindings/v8/ExceptionState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698