quickJsExecutor
quickJsExecutor():
CodeExecutor
Defined in: mcp-code/src/lib/quickjs-executor.ts:58
The default CodeExecutor: QuickJS (sync WASM build) with host calls bridged as guest
promises. Every execution gets a fresh WASM instance with its own bounded
WebAssembly.Memory — the only hard memory cap (QuickJS’s own limit is soft), memory is
reclaimed after a bomb, and an instance poisoned by a host-side fault is simply discarded.
See PRD Decisions #12–13 for the measurements behind each choice.