aggregate-error
aggregate-error copied to clipboard
Add message argument
Add a message argument to bring the constructor in line with the TC39 AggregateError proposal.
Before
new AggregateError(errors)
After
new AggregateError(errors[, message])
The message is simply written to error.message property.
Makes sense.