Enable targetting of a different node version than the currently running one when building binary modules. Based on nodejs/node@410296c37 PR-URL: https://github.com/nodejs/node/pull/8171 Ref: https://github.com/nodejs/node/pull/8027 Ref: https://github.com/nodejs/node/pull/7808 Ref: https://github.com/nodejs/node-gyp/pull/855 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
10 lines
367 B
JavaScript
10 lines
367 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
// Check for existence
|
|
assert(process.config.variables.hasOwnProperty('node_module_version'));
|
|
|
|
// Ensure that `node_module_version` is an Integer
|
|
assert(!Number.isNaN(parseInt(process.config.variables.node_module_version)));
|
|
assert.strictEqual(process.config.variables.node_module_version, 46);
|