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

Unified Diff: chrome/renderer/resources/extension_process_bindings.js

Issue 6153002: Start counting at 1 for extension API validation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/renderer/resources
Patch Set: Created 9 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extension_process_bindings.js
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js
index 43b6617500fc8db469037a3db7f34a8da423b10b..35d516e5db3f1f7b32ce008cb90cd522cd61a8b5 100644
--- a/chrome/renderer/resources/extension_process_bindings.js
+++ b/chrome/renderer/resources/extension_process_bindings.js
@@ -53,7 +53,7 @@ var chrome = chrome || {};
if (validator.errors.length == 0)
continue;
- var message = "Invalid value for argument " + i + ". ";
+ var message = "Invalid value for argument " + (i + 1) + ". ";
for (var i = 0, err; err = validator.errors[i]; i++) {
if (err.path) {
message += "Property '" + err.path + "': ";
@@ -67,7 +67,7 @@ var chrome = chrome || {};
throw new Error(message);
} else if (!schemas[i].optional) {
- throw new Error("Parameter " + i + " is required.");
+ throw new Error("Parameter " + (i + 1) + " is required.");
}
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698