Bug 1251728 - Followup: fix memory tool Xpcshell bustage due to introduction of strict mode. r=bustage
authorTim Nguyen <ntim.bugs@gmail.com>
Wed, 21 Dec 2016 21:08:59 +0100
changeset 326968 8303c228d2d9d5c0bb314e1ae1190c2a874f3849
parent 326967 3f3ea09dd51190713ed8023d3f7543ad5bf7fa90
child 326969 261f9a8cc0fa4c253964b82597fa92eb578cc711
push id31116
push userkwierso@gmail.com
push dateFri, 23 Dec 2016 02:37:16 +0000
treeherdermozilla-central@2785aaf276ba [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs1251728
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1251728 - Followup: fix memory tool Xpcshell bustage due to introduction of strict mode. r=bustage MozReview-Commit-ID: wxByJuMY1b
devtools/client/memory/test/unit/test_action-export-snapshot.js
--- a/devtools/client/memory/test/unit/test_action-export-snapshot.js
+++ b/devtools/client/memory/test/unit/test_action-export-snapshot.js
@@ -27,15 +27,15 @@ add_task(function* () {
 
   let exportEvents = Promise.all([
     waitUntilAction(store, actions.EXPORT_SNAPSHOT_START),
     waitUntilAction(store, actions.EXPORT_SNAPSHOT_END)
   ]);
   dispatch(exportSnapshot(getState().snapshots[0], destPath));
   yield exportEvents;
 
-  stat = yield OS.File.stat(destPath);
+  let stat = yield OS.File.stat(destPath);
   do_print(stat.size);
   ok(stat.size > 0, "destination file is more than 0 bytes");
 
   heapWorker.destroy();
   yield front.detach();
 });