sindresorhus/aggregate-error

Add message argument

Open

#12 创建于 2020年3月10日

在 GitHub 查看
 (1 评论) (1 反应) (0 负责人)JavaScript (18 fork)user submission
enhancementhelp wanted

仓库指标

Star
 (247 star)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南