diff --git a/lib/util/versioning.js b/lib/util/versioning.js index a55b28a2..7dfa9478 100644 --- a/lib/util/versioning.js +++ b/lib/util/versioning.js @@ -34,6 +34,13 @@ function get_node_abi(runtime, target) { return 'v8-' + abi; } } else { + if (runtime === 'node-webkit') { + if (typeof process.versions['node-webkit'] === 'undefined') { + // erroneous CLI call + throw new Error("Empty target version is not supported if node-webkit is the target."); + } + return runtime + '-v' + process.versions['node-webkit']; + } // process.versions.modules added in >= v0.10.4 and v0.11.7 // https://github.com/joyent/node/commit/ccabd4a6fa8a6eb79d29bc3bbe9fe2b6531c2d8e return process.versions.modules ? runtime+'-v' + (+process.versions.modules) :