tc39 / proposal-promise-any

ECMAScript proposal: Promise.any
https://tc39.es/proposal-promise-any/
200 stars 27 forks source link

Unify AggregateError ctor with Error ctor #59

Closed marjakh closed 4 years ago

marjakh commented 4 years ago

1) The order of setting fields: 1) create object 2) toString(message) & set "message" 3) IterableToList(errors) & set "errors".

2) Unify handling of the message parameter with Error ctor

Having the exact same spec text makes it clear that these ctors do the exact same thing w/ the message parameter.

mathiasbynens commented 4 years ago

This gained consensus at the June 2020 TC39 meeting.

@marjakh Would you mind rebasing so we can get this merged?