Bug 1171440 - Stop using for-each loops in reftest.js; r=dbaron

--HG--
extra : commitid : 2mj8f35nTBx
This commit is contained in:
Ms2ger 2015-06-05 11:23:14 +02:00
Родитель b7bc0d5b7c
Коммит d5fa7d0cfe
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -835,7 +835,7 @@ function ReadManifest(aURL, inherited_status)
var lineNo = 0;
var urlprefix = "";
var defaultTestPrefSettings = [], defaultRefPrefSettings = [];
for each (var str in lines) {
for (var str of lines) {
++lineNo;
if (str.charAt(0) == "#")
continue; // entire line was a comment
@ -923,7 +923,7 @@ function ReadManifest(aURL, inherited_status)
var [precondition_str, fallback_action] = args;
var preconditions = precondition_str.split(/&&/);
cond = false;
for each (var precondition in preconditions) {
for (var precondition of preconditions) {
if (precondition === "debugMode") {
// Currently unimplemented. Requires asynchronous
// JSD call + getting an event while no JS is running
@ -1768,7 +1768,7 @@ function LoadFailed(why)
function RemoveExpectedCrashDumpFiles()
{
if (gExpectingProcessCrash) {
for each (let crashFilename in gExpectedCrashDumpFiles) {
for (let crashFilename of gExpectedCrashDumpFiles) {
let file = gCrashDumpDir.clone();
file.append(crashFilename);
if (file.exists()) {