Bug 1308998 - remove leaked i variable in browser-test.js;r=mccr8 draft
authorJulian Descottes <jdescottes@mozilla.com>
Mon, 10 Oct 2016 20:18:51 +0200
changeset 423263 a535f078125e9a2e98c45e9f3f8c2fe1a4f8f111
parent 423248 0c437519517de5ba4f2245307bd8768e15b127eb
child 533407 186c3b9d31375a3df7ec19f20ddb278b7237b503
push id31852
push userjdescottes@mozilla.com
push dateMon, 10 Oct 2016 18:19:24 +0000
reviewersmccr8
bugs1308998
milestone52.0a1
Bug 1308998 - remove leaked i variable in browser-test.js;r=mccr8 MozReview-Commit-ID: Ej9KOLvoYLC
testing/mochitest/browser-test.js
--- a/testing/mochitest/browser-test.js
+++ b/testing/mochitest/browser-test.js
@@ -601,17 +601,17 @@ Tester.prototype = {
         // use a shrinking GC so that the JS engine will discard JIT code and
         // JIT caches more aggressively.
 
         let shutdownCleanup = aCallback => {
           Cu.schedulePreciseShrinkingGC(() => {
             // Run the GC and CC a few times to make sure that as much
             // as possible is freed.
             let numCycles = 3;
-            for (i = 0; i < numCycles; i++) {
+            for (let i = 0; i < numCycles; i++) {
               Cu.forceGC();
               Cu.forceCC();
             }
             aCallback();
           });
         };