github.com/yrj2011/jx-test-infra@v0.0.0-20190529031832-7a2065ee98eb/triage/node_modules/jasmine/lib/exit.js (about) 1 module.exports = function(exitCode, platform, nodeVersion, exit, nodeExit) { 2 if(isWindows(platform) && olderThan12(nodeVersion)) { 3 nodeExit(exitCode); 4 } 5 else { 6 exit(exitCode); 7 } 8 }; 9 10 function isWindows(platform) { 11 return /^win/.test(platform); 12 } 13 14 function olderThan12(nodeVersion) { 15 var version = nodeVersion.split('.'); 16 return parseInt(version[0].substr(1), 10) <= 0 && parseInt(version[1], 10) < 12; 17 }