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.
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const common = require('../../common');
|
|
|
|
const assert = require('assert');
|
|
|
|
|
|
|
|
const re = new RegExp(
|
|
|
|
'^Error: The module \'.+\'\n' +
|
|
|
|
'was compiled against a different Node\\.js version using\n' +
|
|
|
|
'NODE_MODULE_VERSION 42\\. This version of Node\\.js requires\n' +
|
|
|
|
`NODE_MODULE_VERSION ${process.versions.modules}. ` +
|
|
|
|
'Please try re-compiling or re-installing\n' +
|
|
|
|
'the module \\(for instance, using `npm rebuild` or `npm install`\\)\\.$');
|
|
|
|
|
|
|
|
assert.throws(() => require(`./build/${common.buildType}/binding`), re);
|