pocesar / grunt-mocha-istanbul

Almost config-free Istanbul code coverage reporter for Mocha usage in Grunt
MIT License
75 stars 23 forks source link

Use `process.execPath` instead of `node` executable. #33

Closed nicokaiser closed 9 years ago

nicokaiser commented 9 years ago

When this task is run with a different node.js version than the "node" executable in the path (or even worse, if no "node" is in the path), we have a version mismatch, which leads to strange effects if we are dealing with compiled modules.

So it is better to use process.execPath which should point to the currently running version of node.

pocesar commented 9 years ago

nice thanks, a good side effect is that it works with iojs out-of-the-box. will release in a bit