Commit 4b7449cf by Dane Springmeyer

ensure we use integers for node abi version - in the case of node v0.11.3 this…

ensure we use integers for node abi version - in the case of node v0.11.3 this converts 0x000C -> 12
parent ed5a96c2
...@@ -12,7 +12,7 @@ var Binary = function(options) { ...@@ -12,7 +12,7 @@ var Binary = function(options) {
this.platform = options.platform || process.platform; this.platform = options.platform || process.platform;
this.target_arch = options.target_arch || process.arch; this.target_arch = options.target_arch || process.arch;
if (process.versions.modules) { if (process.versions.modules) {
this.node_abi = 'node-v' + process.versions.modules this.node_abi = 'node-v' + (+process.versions.modules);
} else { } else {
this.node_abi = 'v8-' + process.versions.v8.split('.').slice(0,2).join('.'); this.node_abi = 'v8-' + process.versions.v8.split('.').slice(0,2).join('.');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment