Skip to content

WorkerSandbox

Nodepod API


Nodepod API / src / WorkerSandbox

Defined in: src/worker-sandbox.ts:25

new WorkerSandbox(vol, cfg?): WorkerSandbox

Defined in: src/worker-sandbox.ts:34

MemoryVolume

EngineConfig = {}

WorkerSandbox

clearCache(): void

Defined in: src/worker-sandbox.ts:77

void

IScriptEngine.clearCache


execute(code, filename?): Promise<ExecutionOutcome>

Defined in: src/worker-sandbox.ts:67

string

string

Promise<ExecutionOutcome>

IScriptEngine.execute


getVolume(): MemoryVolume

Defined in: src/worker-sandbox.ts:81

MemoryVolume

IScriptEngine.getVolume


runFile(filename): Promise<ExecutionOutcome>

Defined in: src/worker-sandbox.ts:72

string

Promise<ExecutionOutcome>

IScriptEngine.runFile


terminate(): void

Defined in: src/worker-sandbox.ts:85

void

IScriptEngine.terminate