Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

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

Closed
mbrevda opened this issue Sep 17, 2014 · 5 comments
Closed

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

mbrevda opened this issue Sep 17, 2014 · 5 comments

Comments

@mbrevda
Copy link

mbrevda commented Sep 17, 2014

I received the following error after making this change. Coverage worked fine before than.

PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/contrib/cover.js:660
    interim.reduce(function(p, c) {
            ^
TypeError: Reduce of empty array with no initial value
    at Array.reduce (native)
    at linesWithData (PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/contrib/cover.js:660:13)
    at PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/contrib/cover.js:770:21
    at Array.forEach (native)
    at CoverageSession.allStats (PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/contrib/cover.js:758:31)
    at Transform._flush (PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/index.js:76:31)
    at Transform.<anonymous> (PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:135:12)
    at Transform.g (events.js:180:16)
    at Transform.emit (events.js:92:17)
    at finishMaybe (PROJECT_DIR/backbone/kinView/node_modules/gulp-coverage/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:371:12)
@dylanb dylanb closed this as completed in d91e9d6 Sep 18, 2014
@mbrevda
Copy link
Author

mbrevda commented Sep 18, 2014

Thanks for the speedy fix! Do you have an ETA for a version bump so that I can npm update?

@dylanb
Copy link
Owner

dylanb commented Sep 18, 2014

I will do that asap

@mbrevda
Copy link
Author

mbrevda commented Sep 18, 2014

thanks!

On Thu, Sep 18, 2014 at 11:54 PM, Dylan Barrell notifications@github.com
wrote:

I will do that asap


Reply to this email directly or view it on GitHub
#30 (comment).

@dylanb
Copy link
Owner

dylanb commented Sep 18, 2014

updated 0.3.28

@mbrevda
Copy link
Author

mbrevda commented Sep 18, 2014

perfect, works great!

On Thu, Sep 18, 2014 at 11:56 PM, Dylan Barrell notifications@github.com
wrote:

updated 0.3.28


Reply to this email directly or view it on GitHub
#30 (comment).

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

No branches or pull requests

2 participants