You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
598 B

common = require("../common");
assert = common.assert;
path = require("path");
isDebug = (process.version.indexOf('debug') >= 0);
debugPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'debug', 'node_g'));
defaultPath = path.normalize(path.join(__dirname, '..', '..', 'build', 'default', 'node'));
console.log('debugPath: ' + debugPath);
console.log('defaultPath: ' + defaultPath);
console.log('process.execPath: ' + process.execPath);
if (/node_g$/.test(process.execPath)) {
assert.equal(debugPath, process.execPath);
} else {
assert.equal(defaultPath, process.execPath);
}