Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add message argument #12

Open
CxRes opened this issue Mar 10, 2020 · 1 comment
Open

Add message argument #12

CxRes opened this issue Mar 10, 2020 · 1 comment

Comments

@CxRes
Copy link

CxRes commented Mar 10, 2020

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.

@sindresorhus
Copy link
Owner

Makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants