Bug 1530056 - fix flow issues for windowless-workers test. r=me
authorJason Laster <jlaster@mozilla.com>
Sat, 02 Mar 2019 13:54:26 -0500
changeset 520061 ffda293d015cea2843c45d7a0225ab0d46e49614
parent 520060 c30bc007da8adc8447622411387b4abc5bf8aa7c
child 520062 3030e03a5c84a6ae83c45a48caf3847601fe3d76
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1530056
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 1530056 - fix flow issues for windowless-workers test. r=me
devtools/client/debugger/new/src/client/firefox/commands.js
--- a/devtools/client/debugger/new/src/client/firefox/commands.js
+++ b/devtools/client/debugger/new/src/client/firefox/commands.js
@@ -87,17 +87,17 @@ function lookupThreadClient(thread: stri
 function lookupConsoleClient(thread: string) {
   if (thread == threadClient.actor) {
     return tabTarget.activeConsole;
   }
   return workerClients[thread].console;
 }
 
 function listWorkerThreadClients() {
-  return Object.values(workerClients).map(({ thread }) => thread);
+  return (Object.values(workerClients): any).map(({ thread }) => thread);
 }
 
 function resume(thread: string): Promise<*> {
   return new Promise(resolve => {
     lookupThreadClient(thread).resume(resolve);
   });
 }
 
@@ -167,17 +167,17 @@ function removeXHRBreakpoint(path: strin
 
 // Get the string key to use for a breakpoint location.
 // See also duplicate code in breakpoint-actor-map.js :(
 function locationKey(location) {
   const { sourceUrl, sourceId, line, column } = location;
   return `${(sourceUrl: any)}:${(sourceId: any)}:${line}:${(column: any)}`;
 }
 
-function waitForWorkers(shouldWait) {
+function waitForWorkers(shouldWait: boolean) {
   shouldWaitForWorkers = shouldWait;
 }
 
 async function setBreakpoint(
   location: BreakpointLocation,
   options: BreakpointOptions
 ) {
   breakpoints[locationKey(location)] = { location, options };