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 - preventing negative array size #28

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

dylanb commented 9 years ago

@antonio83franco - could you create a test case for this and include it in a separate PR?