sindresorhus/aggregate-error

Add message argument

Open

#12 建立於 2020年3月10日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)JavaScript (247 star) (18 fork)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.

貢獻者指南