Created
July 18, 2019 18:11
-
-
Save jasonLaster/d8d009e1790c5d1f364255f45370bcb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/devtools/client/debugger/src/client/firefox/commands.js b/devtools/client/debugger/src/client/firefox/commands.js | |
index 8343a059d6e1..dfcf853cf529 100644 | |
--- a/devtools/client/debugger/src/client/firefox/commands.js | |
+++ b/devtools/client/debugger/src/client/firefox/commands.js | |
@@ -127,13 +127,9 @@ function forEachThread(iteratee) { | |
// going out of sync. | |
const mainThreadPromise = iteratee(threadFront); | |
const workerPromises = listWorkerThreadFronts().map(t => { | |
- try { | |
- iteratee(t); | |
- } catch (e) { | |
// If a worker thread shuts down while sending the message then it will | |
// throw. Ignore these errors. | |
- console.error(e); | |
- } | |
+ iteratee(t).catch((e) => console.error(e)); | |
}); | |
return Promise.all([mainThreadPromise, ...workerPromises]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment