Skip to content

Commit

Permalink
[New] add node:sea
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 12, 2024
1 parent 3531bbf commit 2819fb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions core.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
5 changes: 5 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2819fb3

Please sign in to comment.