Bug 911216 - Part 21: Appease eslint. r=bustage
authorTill Schneidereit <till@tillschneidereit.net>
Thu, 26 May 2016 16:59:16 +0200
changeset 338197 83c87ecd3700a61d0310648628cd5a58935dc6a0
parent 338196 d89f93a40f78e80b86d952237e2813a3f43e6317
child 338198 5476ba10ab0b240b2a4197a79197d6b62eaa612c
push id6249
push userjlund@mozilla.com
push dateMon, 01 Aug 2016 13:59:36 +0000
treeherdermozilla-beta@bad9d4f5bf7e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbustage
bugs911216
milestone49.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 911216 - Part 21: Appease eslint. r=bustage
toolkit/components/aboutperformance/content/aboutPerformance.js
--- a/toolkit/components/aboutperformance/content/aboutPerformance.js
+++ b/toolkit/components/aboutperformance/content/aboutPerformance.js
@@ -130,17 +130,17 @@ let tabFinder = {
 function wait(ms = 0) {
   try {
     let resolve;
     let p = new Promise(resolve_ => {resolve = resolve_});
     setTimeout(resolve, ms);
     return p;
   } catch (e) {
     dump("WARNING: wait aborted because of an invalid Window state in aboutPerformance.js.\n");
-    return;
+    return undefined;
   }
 }
 
 /**
  * The performance of a webpage or an add-on between two instants.
  *
  * Clients should call `promiseInit()` before using the methods of this object.
  *