Skip to main content

Module script_ctx

Module script_ctx 

Source
Expand description

ScriptCtx — the host context passed to every stdlib FFI call.

Holds a shared HTTP agent (connection pooling across calls), the command-line argv, the current file being evaluated (for relative- path require), and the require cache (so repeated (require …) calls are no-ops). Embedders that want to extend the stdlib should either expose ScriptCtx directly or wrap it in their own type and re-register fn’s against that.

Structs§

ScriptCtx
TestCase
A collected (deftest name body) form awaiting --test execution.