Skip to main content

Module api

Module api 

Source
Expand description

Rust embedding boundary: the API over quickjs-oxide-core lives in core.

Modules§

core
The embedding API over quickjs-oxide-core: one realm per runtime, values as Rust data or handles, the host as one trait, host functions with a Scope, module loaders with a ModuleScope.
error

Functions§

declare_thread_stack
Declare that the current thread was spawned with size bytes of stack.
number_to_string
Formatting and source classification used by embedders. Number::toString(value, 10), as the core prints it.
quickjs_detect_module_bytes
Apply QuickJS’s module-detection heuristic to an explicitly sized source buffer without decoding or replacing authored bytes.