Open Bug 1599434 Opened 5 years ago Updated 2 years ago

Add support for AggregateError to PromiseWorker

Categories

(Toolkit :: Async Tooling, enhancement)

enhancement

Tracking

()

Tracking Status
firefox72 --- affected

People

(Reporter: anba, Unassigned)

References

Details

The Promise.any proposal (bug 1568903) adds a new kind of built-in error (AggregateError: https://tc39.es/proposal-promise-any/#sec-aggregate-error-object-structure). AggregateErrors are similar to the existing built-in errors with the exception of:

  • The AggregateError constructor must be called with an iterable value as its first argument.
  • AggregateError.prototype has an errors getter-only accessor. This accessor returns an array of aggregated errors.

Promise.any and AggregateError are currently Nightly-only!

See Also: → 1568903
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.