diff --git a/layout/tools/reftest/reftest.js b/layout/tools/reftest/reftest.js index 8103c2264f43..5d6704e4d74e 100644 --- a/layout/tools/reftest/reftest.js +++ b/layout/tools/reftest/reftest.js @@ -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()) {