Skip to content

Instantly share code, notes, and snippets.

@jasonLaster
Created July 18, 2019 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonLaster/d8d009e1790c5d1f364255f45370bcb4 to your computer and use it in GitHub Desktop.
Save jasonLaster/d8d009e1790c5d1f364255f45370bcb4 to your computer and use it in GitHub Desktop.
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