node/test/fixtures/sea
Joyee Cheung 9ff27fdb01
sea: support code cache for ESM entrypoint in SEA
The initial support for ESM entrypoint in SEA didn't support
code cache. This patch implements that by following a path
similar to how code cache in CJS SEA entrypoint is supported:
at build time we generate the code cache from C++ and put it
into the sea blob, and at runtime we consume it via a special
case in compilation routines - for CJS this was
CompileFunctionForCJSLoader, in the case of SourceTextModule,
it's in Module::New.

PR-URL: https://github.com/nodejs/node/pull/62158
Refs: https://github.com/nodejs/node/pull/61813
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
2026-03-10 22:37:10 +00:00
..
addon
already-exists sea: add --build-sea to generate SEA directly with Node.js binary 2026-01-22 23:32:50 +01:00
asset-keys
asset-keys-empty
assets
assets-invalid-type
assets-nonexistent-file
assets-raw
basic sea: add --build-sea to generate SEA directly with Node.js binary 2026-01-22 23:32:50 +01:00
disable-experimental-warning
empty
esm sea: support ESM entry point in SEA 2026-02-18 21:03:33 +00:00
esm-code-cache sea: support code cache for ESM entrypoint in SEA 2026-03-10 22:37:10 +00:00
exec-argv
exec-argv-empty
exec-argv-extension-cli
exec-argv-extension-env
exec-argv-extension-none
executable-field sea: add --build-sea to generate SEA directly with Node.js binary 2026-01-22 23:32:50 +01:00
inspect
inspect-in-sea-flags
simple
snapshot
snapshot-and-code-cache
snapshot-worker
use-code-cache src: add initial support for ESM in embedder API 2026-02-02 12:24:51 +00:00