On Thu, Oct 31, 2019 at 4:10 AM Paolo Amadini <paolo.02....@amadzone.org> wrote:
> // INCORRECT > //await Promise.allSettled([promise1, promise2]); > > The last example silently loses any rejection state. > Ignoring the awaited value here is like using `catch {}` to squelch all exceptions, or ignoring the return value of an async function or method, or any other expression that produces a Promise. Do we have lints for those pitfalls? I'm kind of surprised that there doesn't seem to be a built-in ESLint lint for `catch {}`. There's nothing special about tests here, right? Those patterns are fishy whether you're in a test or not. -j _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform