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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp

Issue 2809003004: bindings: Use ExceptionMessages when an interface/callback conversion fails. (Closed)
Patch Set: Add ExceptionMessages::FailedToConvertJSValue Created 3 years, 8 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
Index: third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp b/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp
index c145537a7b1e30b20f13387463fd20a9ccde5cd6..a075ee1c2a83dc15b8ac9c8d1b55dc89b0766fa3 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ExceptionMessages.cpp
@@ -35,6 +35,10 @@
namespace blink {
+String ExceptionMessages::FailedToConvertJSValue(const char* type) {
+ return String::Format("Failed to convert value to '%s'.", type);
+}
+
String ExceptionMessages::FailedToConstruct(const char* type,
const String& detail) {
return "Failed to construct '" + String(type) +

Powered by Google App Engine
This is Rietveld 408576698