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.

贡献者指南

Add message argument · sindresorhus/aggregate-error#12 | Good First Issue