> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/standard-library/concurrency/js.md).

# js

```osl
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.
