For the complete documentation index, see llms.txt. This page is also available as Markdown.

js

import "std:js"
Method
Returns
Notes

js.eval(code: any, timeoutMs: any)

object

Runs QuickJS with a hard timeout and memory limit. Returns {success, result} or {success: false, error}.

The sandbox has no filesystem or network access. Timeouts are clamped to a finite maximum so infinite loops cannot wedge the host process.

Last updated