Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: chrome/content/errors.html

Issue 6519778499887104: Issue 2010 - Remove some uses of "for each" with "for of" (Closed)
Patch Set: Created Feb. 26, 2015, 11:50 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/content/ui/composer.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/errors.html
===================================================================
--- a/chrome/content/errors.html
+++ b/chrome/content/errors.html
@@ -60,17 +60,17 @@
(/adblock/i.test(message.errorMessage) || /adblock/i.test(message.sourceName) ||
id && (message.errorMessage.indexOf(id) >= 0 || message.sourceName && message.sourceName.indexOf(id) >= 0)));
});
if (messages.length)
{
document.write("<p>Errors related to Adblock Plus:</p>");
- for each (let message in messages)
+ for (let message of messages)
{
let type = (message.flags & Components.interfaces.nsIScriptError.warningFlag ? "warning" : "error");
let html = "<b>" + (type == "warning" ? "Warning:" : "Error:") + "</b><br>";
html += encodeHTML(message.errorMessage) + "<br><br>";
if (message.sourceLine)
html += "Source line: " + encodeHTML(message.sourceLine) + "<br>";
if (message.sourceName)
html += "Location: " + encodeHTML(message.sourceName) + " line " + message.lineNumber + "<br>";
« no previous file with comments | « no previous file | chrome/content/ui/composer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld