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