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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js

Issue 1081803005: Fix warnings and errors in ChromeVox since Closure compiler update. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
index f19913fb28a39a92d5448ed93be4b16be93317c1..e14ce4e91e2831a48846073044108f62b1b271cf 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/output.js
@@ -536,11 +536,11 @@ Output.prototype = {
this.append_(buff, text, options);
} else if (token == 'indexInParent') {
options.annotation.push(token);
- this.append_(buff, node.indexInParent + 1);
+ this.append_(buff, String(node.indexInParent + 1));
} else if (token == 'parentChildCount') {
options.annotation.push(token);
if (node.parent)
- this.append_(buff, node.parent.children.length);
+ this.append_(buff, String(node.parent.children.length));
} else if (token == 'state') {
options.annotation.push(token);
Object.getOwnPropertyNames(node.state).forEach(function(s) {

Powered by Google App Engine
This is Rietveld 408576698