sindresorhus/aggregate-error

Add message argument

Open

#12 opened on 2020年3月10日

GitHub で見る
 (1 comment) (1 reaction) (0 assignees)JavaScript (247 stars) (18 forks)user submission
enhancementhelp wanted

説明

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.

コントリビューターガイド