diff --git a/core.json b/core.json index 2592e14..c66eeec 100644 --- a/core.json +++ b/core.json @@ -89,6 +89,7 @@ "node:readline/promises": ">= 17", "repl": true, "node:repl": [">= 14.18 && < 15", ">= 16"], + "node:sea": [">= 20.12 && < 21", ">= 21.7"], "smalloc": ">= 0.11.5 && < 3", "_stream_duplex": ">= 0.9.4", "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"], diff --git a/test/index.js b/test/index.js index 912808b..9b35bc9 100644 --- a/test/index.js +++ b/test/index.js @@ -83,10 +83,15 @@ test('core modules', function (t) { 'v8/tools/tickprocessor', 'v8/tools/profile' ]; + // see https://github.com/nodejs/node/issues/42785 if (semver.satisfies(process.version, '>= 18')) { libs = libs.concat('node:test'); } + if (semver.satisfies(process.version, '^20.12 || >= 21.7')) { + libs = libs.concat('node:sea'); + } + for (var i = 0; i < libs.length; ++i) { var mod = libs[i]; if (excludeList.indexOf(mod) === -1) {