Bug 1530133 - Fix flow/lint failures.
authorBrian Hackett <bhackett1024@gmail.com>
Tue, 05 Mar 2019 13:05:55 -1000
changeset 462519 8cccd561de71085f58db07f384ec9456be32c573
parent 462518 033697893400f17daeb0acacaf4916596b0d1471
child 462520 03d1b41cdfc057a5355d1e839151ff71f558d9a5
push id35654
push userncsoregi@mozilla.com
push dateWed, 06 Mar 2019 09:57:59 +0000
treeherdermozilla-central@3e0cf2f77f07 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1530133
milestone67.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 1530133 - Fix flow/lint failures.
devtools/client/debugger/new/src/client/firefox/commands.js
devtools/client/debugger/new/src/client/firefox/types.js
--- a/devtools/client/debugger/new/src/client/firefox/commands.js
+++ b/devtools/client/debugger/new/src/client/firefox/commands.js
@@ -181,17 +181,20 @@ function maybeGenerateLogGroupId(options
     return { ...options, logGroupId: `logGroup-${Math.random()}` };
   }
   return options;
 }
 
 function maybeClearLogpoint(location) {
   const bp = breakpoints[locationKey(location)];
   if (bp && bp.options.logGroupId && tabTarget.activeConsole) {
-    tabTarget.activeConsole.emit("clearLogpointMessages", bp.options.logGroupId);
+    tabTarget.activeConsole.emit(
+      "clearLogpointMessages",
+      bp.options.logGroupId
+    );
   }
 }
 
 async function setBreakpoint(
   location: BreakpointLocation,
   options: BreakpointOptions
 ) {
   maybeClearLogpoint(location);
--- a/devtools/client/debugger/new/src/client/firefox/types.js
+++ b/devtools/client/debugger/new/src/client/firefox/types.js
@@ -217,26 +217,28 @@ export type TabTarget = {
       func: Function,
       params?: { frameActor: ?FrameId }
     ) => Promise<{ result: ?Object }>,
     autocomplete: (
       input: string,
       cursor: number,
       func: Function,
       frameId: ?string
-    ) => void
+    ) => void,
+    emit: (string, any) => void
   },
   form: { consoleActor: any },
   root: any,
   navigateTo: ({ url: string }) => Promise<*>,
   listWorkers: () => Promise<*>,
   reload: () => Promise<*>,
   destroy: () => void,
   isBrowsingContext: boolean,
-  isContentProcess: boolean
+  isContentProcess: boolean,
+  traits: Object
 };
 
 /**
  * Clients for accessing the Firefox debug server and browser
  * @memberof firefox/clients
  * @static
  */