68e0a69a6f50e252db01b9f1a33278af8d1fda749f3c6c45e870181169d12f5ac3d46f5ec14718fe509c02eeff0a6f49a350383e6bd0de115db490baf08283 431 B

123456789101112131415161718
  1. 'use strict';
  2. // See: https://github.com/IndigoUnited/node-cross-spawn/pull/34#issuecomment-221623455
  3. function hasEmptyArgumentBug() {
  4. var nodeVer;
  5. if (process.platform !== 'win32') {
  6. return false;
  7. }
  8. nodeVer = process.version.substr(1).split('.').map(function (num) {
  9. return parseInt(num, 10);
  10. });
  11. return (nodeVer[0] === 0 && nodeVer[1] < 12);
  12. }
  13. module.exports = hasEmptyArgumentBug();