dylanb / gulp-coverage

Gulp coverage reporting for Node.js that is independent of the test runner
MIT License
60 stars 12 forks source link

FIX - prevent negative array size #27

Closed antonio83franco closed 9 years ago

antonio83franco commented 9 years ago

This pull request aim to prevent negative array size when calculating "segments". A code snippet similar to this

    myobj.myattr = myFunctionCall({ 
        onlyOneAttributeHere: 0
    });

was causing a crash in the gulp task