mirror of https://github.com/nodejs/node.git
12 lines
343 B
JavaScript
12 lines
343 B
JavaScript
|
'use strict';
|
||
|
|
||
|
require('../../common');
|
||
|
const assert = require('assert');
|
||
|
|
||
|
const re = new RegExp(
|
||
|
'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}.`);
|
||
|
|
||
|
assert.throws(() => require('./build/Release/binding'), re);
|