Q: Have an untrusted code from your LLM?
Deno sandboxes might do the trick, or atleast show you how to.