Skip to content
1 min read · 52 words

Function: createSandbox()

ts
function createSandbox(options: CreateSandboxOptions): Promise<SandboxHandle>;

Defined in: src/batteries/sandbox/manager.ts:207

Admit one process-global sandbox. Drift is detection, not prevention: SRT consults its proxies per request, so a widening can affect an already-spawned child for its lifetime.

Parameters

ParameterType
optionsCreateSandboxOptions

Returns

Promise<SandboxHandle>