Medusa::Runtime
Inherits Reference < Object
Constructors
new
SourceInstance methods
can_block=(val : Bool) : Nil
Sourceexecute_pending_job
Executes one pending job. Returns {success, context} where success is true if a job was executed, false if none pending. Raises on JS exception during job execution (returns < 0).
finalize
Sourcefreed?
Sourcegc_threshold=(threshold : UInt64) : Nil
Sourceinfo=(info : String) : Nil
Sourcejob_pending?
Sourcelive_object?(obj : QuickJS::JSValue) : Bool
Sourcemark_freed!
Sourcemax_stack_size=(size : UInt64) : Nil
Sourcememory_limit=(limit : UInt64) : Nil
Sourcememory_usage
Sourceopaque
Sourceopaque=(ptr : Pointer(Void)) : Nil
Sourcerun_gc
Sourcesetup_module_loader
Enables file-based ES module loading. After calling this, all contexts
on this runtime can use import / export with file paths.
Relative paths are resolved from the importing module's directory.
This runs entirely in C — no Crystal closures cross the FFI boundary.
strip_info
Sourcestrip_info=(flags : QuickJS::StripFlag) : Nil
Sourceto_unsafe
Sourceupdate_stack_top
Source