Bug 1437828 - manual fixes. r=jryans draft
authorAlexandre Poirot <poirot.alex@gmail.com>
Tue, 13 Feb 2018 07:57:01 -0800
changeset 754796 39053d527d45e06bce0d7c3d79fcd7b7d26b2d3b
parent 754795 34a9deec88231f1db9727cf1c3c028cea9b56796
child 754797 9d66cc0ac667d92541344b425c1067bd80cacfad
push id99001
push userbmo:poirot.alex@gmail.com
push dateWed, 14 Feb 2018 10:14:19 +0000
reviewersjryans
bugs1437828
milestone60.0a1
Bug 1437828 - manual fixes. r=jryans MozReview-Commit-ID: 2sAcR7Ffwaa
devtools/server/tests/mochitest/test_memory_gc_01.html
--- a/devtools/server/tests/mochitest/test_memory_gc_01.html
+++ b/devtools/server/tests/mochitest/test_memory_gc_01.html
@@ -27,21 +27,21 @@ window.onload = function () {
       let objects = [];
       for (let i = 0; i < 1000; i++) {
         let o = {};
         o[Math.random()] = 1;
         objects.push(o);
       }
       objects = null;
 
-      await { total: beforeGC } = memory.measure();
+      beforeGC = (await memory.measure()).total;
 
       await memory.forceGarbageCollection();
 
-      await { total: afterGC } = memory.measure();
+      afterGC = (await memory.measure()).total;
     } while (beforeGC < afterGC);
 
     ok(true, "The amount of memory after GC should eventually decrease");
 
     destroyServerAndFinish(client);
   })();
 };
 </script>