-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Make it more spec compliant #4
Comments
I have a feeling it's because of Lines 24 to 28 in 7ae39e2
|
// @boneskull |
good question! |
whoever wants to look into this, please create an issue and PR on Mocha's issue tracker. The problem is likely somewhere in this function. |
I think one problem is that aggregate-error puts all the stacks of the errors into |
Tested Chrome does not invoke |
Yeah, I want to align this better with https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError/AggregateError
|
I'll be watching this one--Mocha should understand these errors. |
@sindresorhus this setup is arguably better than the spec :( |
@timoxley How so? |
tbh stuffing the stack(s) into |
@sindresorhus Spec But does give better logging with So I guess the problem is really more of a shortcoming of the browser |
@sindresorhus @timoxley I do think this is better in some ways than the spec. This library currently creates a sensible error message if a custom one isn't provided. With the official AggregateError: vs current situation (and what the docs will have led users to do already in existing codebases): So making it spec compliant would involve changing the message-less behaviour to make the resultant message prop less helpful. That might hurt a lot of users who auto-update when they get paged in the middle of the night with Given that, IMO making it spec compliant should be either a major release and make |
One idea would be to turn this module into a factory function |
I found this because I was looking for something roughly equivalent to verror, which is good but hasn't been published in four years. It'd be nice to have a semi-official way of aggregating errors. But |
When used with mocha the errors are displayed twice. Is there a way to have it only display once?
The report is
The text was updated successfully, but these errors were encountered: