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

TypeError: Reduce of empty array with no initial value #685

Closed
tschaub opened this issue Mar 11, 2017 · 1 comment
Closed

TypeError: Reduce of empty array with no initial value #685

tschaub opened this issue Mar 11, 2017 · 1 comment
Assignees
Labels
bug
Milestone

Comments

@tschaub
Copy link

@tschaub tschaub commented Mar 11, 2017

I just tried upgrading from 12.1 to 13.0 and ran into this issue. See also 324c9ec#commitcomment-21272280

I didn't debug further, but it looks like the reduce((a, b) => a + b) call in coverage.js will fail if tree.comments is an empty array.

@geek geek added the bug label Mar 12, 2017
@geek geek self-assigned this Mar 12, 2017
@geek geek added this to the 13.0.1 milestone Mar 12, 2017
@geek geek closed this in #686 Mar 12, 2017
@geek

This comment has been minimized.

Copy link
Member

@geek geek commented Mar 12, 2017

@tschaub thanks for reporting... this is now fixed and published in v13.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.