GruntBlanketMocha / grunt-blanket-mocha

Headless Blanket.js code coverage and Mocha testing via PhantomJS
MIT License
53 stars 37 forks source link

Function.prototype.bind is missing #34

Closed romanchyla closed 7 years ago

romanchyla commented 10 years ago

Hi, I run my tests in phantomjs (1.9.7), some of the calls are doing:

var f = function() {}
return f.bind(object)

suddenly, this started failing when I include blanket.js (1.1.6) to get coverage reports -

grunt blanket_mocha

I believe this is because the code is using old version of phantojms (1.9.12) - for the moment, I solved it by including es5-shim in my coverage tests (https://github.com/es-shims/es5-shim) but hopefully you will be able to upgrade to newer phantomjs