11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ci 31cb0ef41Sopenharmony_ciconst common = require('../../common'); 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_ciconst re = new RegExp( 71cb0ef41Sopenharmony_ci '^Error: The module \'.+\'\n' + 81cb0ef41Sopenharmony_ci 'was compiled against a different Node\\.js version using\n' + 91cb0ef41Sopenharmony_ci 'NODE_MODULE_VERSION 42\\. This version of Node\\.js requires\n' + 101cb0ef41Sopenharmony_ci `NODE_MODULE_VERSION ${process.versions.modules}\\. ` + 111cb0ef41Sopenharmony_ci 'Please try re-compiling or re-installing\n' + 121cb0ef41Sopenharmony_ci 'the module \\(for instance, using `npm rebuild` or `npm install`\\)\\.$'); 131cb0ef41Sopenharmony_ci 141cb0ef41Sopenharmony_ciassert.throws(() => require(`./build/${common.buildType}/binding`), re); 15