/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v26.4.0
test/sea/test-single-executable-application-esm-code-cache.js
34 строки
800 B
Joyee Cheung
sea: support code cache for ESM entrypoint in SEA
11 мар 2026, 01:37
Не верифицирован
11 мар 2026, 01:37
9ff27fd
Код
Авторство
О чём код?
'use strict'; // This tests the creation of a single executable application with an ESM // entry point using "mainFormat": "module" and "useCodeCache": true. require('../common'); const { buildSEA, skipIfBuildSEAIsNotSupported, } = require('../common/sea'); skipIfBuildSEAIsNotSupported(); const tmpdir = require('../common/tmpdir'); const fixtures = require('../common/fixtures'); const { spawnSyncAndExitWithoutError } = require('../common/child_process'); tmpdir.refresh(); const outputFile = buildSEA(fixtures.path('sea', 'esm-code-cache')); spawnSyncAndExitWithoutError( outputFile, { env: { NODE_DEBUG_NATIVE: 'SEA', ...process.env, }, }, { stdout: /ESM SEA with code cache executed successfully/, stderr: /SEA module code cache accepted/, });