diff --git a/ext/node/polyfills/01_require.js b/ext/node/polyfills/01_require.js index 7eb549134fe599..c29073901994b6 100644 --- a/ext/node/polyfills/01_require.js +++ b/ext/node/polyfills/01_require.js @@ -1121,6 +1121,9 @@ Module._extensions[".json"] = function (module, filename) { // Native extension for .node Module._extensions[".node"] = function (module, filename) { + if (filename.endsWith("cpufeatures.node")) { + throw new Error("Using cpu-features module is currently not supported"); + } module.exports = op_napi_open( filename, globalThis,