diff --git a/test/cli.js b/test/cli.js index bec0f3f..84e47fd 100644 --- a/test/cli.js +++ b/test/cli.js @@ -1,10 +1,14 @@ var ConnectionParameters = require(__dirname + '/../lib/connection-parameters'); var config = new ConnectionParameters(process.argv[2]); +var semver = require('semver') for(var i = 0; i < process.argv.length; i++) { switch(process.argv[i].toLowerCase()) { case 'native': - config.native = true; + if (semver.gte(process.version, '4.0.0')) { + console.log('Not running native in node < v4.0.0') + config.native = true; + } break; case 'binary': config.binary = true;