diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 20:37:25 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-07 20:37:25 +0000 |
commit | 8fcb886ac750a4d10ff7890a489ca2dcc780492b (patch) | |
tree | 4d86012038e74540a2f39a21aa05718b4ce30853 /chrome/renderer | |
parent | 9989c9bb16d23b11ff55daf8545b76c2eeba3440 (diff) | |
download | chromium_src-8fcb886ac750a4d10ff7890a489ca2dcc780492b.zip chromium_src-8fcb886ac750a4d10ff7890a489ca2dcc780492b.tar.gz chromium_src-8fcb886ac750a4d10ff7890a489ca2dcc780492b.tar.bz2 |
Start counting at 1 for extension API validation.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70774 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/resources/extension_process_bindings.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/renderer/resources/extension_process_bindings.js b/chrome/renderer/resources/extension_process_bindings.js index 43b6617..35d516e 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."); } } }; |