1 of 4

Promise.any�AggregateError

2 of 4

  • tc39/proposal-promise-any#64: errors on AggregateError
    • change errors from a prototype accessor to an own data property
    • resolves discussion in tc39/proposal-promise-any#38
  • tc39/proposal-promise-any#59: unify AggregateError with Error
    • changes AggregateError argument processing order to match original design

Resolving open non-editorial patches

3 of 4

#59: Current semantics, roughly:

class AggregateError extends Error {

constructor(errors, message) {

super(undefined);

this.errors = %IterableToList(errors);

this.message = ToString(message);

}

}

4 of 4

#59: Proposed semantics, roughly:

class AggregateError extends Error {

constructor(errors, message) {

super(message);

this.errors = %IterableToList(errors);

}

}