sindresorhus/aggregate-error

Add message argument

Open

#12 aberto em 10 de mar. de 2020

Ver no GitHub
 (1 comment) (1 reaction) (0 assignees)JavaScript (247 stars) (18 forks)user submission
enhancementhelp wanted

Description

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.

Guia do colaborador