test(code-runtime): complete sandboxed process coverage and catalogs

This commit is contained in:
Tianyi Cui
2026-09-12 15:03:01 +08:00
parent 8e19ec4962
commit fc5cb0f649
31 changed files with 361 additions and 169 deletions
@@ -26,6 +26,7 @@ export function bootstrapArgs(fs: FileSystem, config: LaunchConfig, maxMessageBy
if (result === undefined) throw new Error(`code runtime bootstrap is unavailable in the subprocess execution world: ${path}`)
return result
}
/* v8 ignore next 3 -- built-lib.e2e.ts executes the bundled provider and sibling process.js under plain Node. */
if (!new URL(import.meta.url).pathname.endsWith('.ts')) {
return [mapped(fileURLToPath(new URL('./process.js', import.meta.url))), String(maxMessageBytes)]
}