class

Medusa::Sandbox

Inherits Reference < Object

Constants

Log = ::Log.for(self)

Constructors

new(*, raw : Bool)
Source

Instance methods

bind(name : String, arg_count : Int32 = 0, &block : Array(ValueWrapper) -> _) : Nil
Source
bind_raw(name : String, arg_count : Int32 = 0, &block : Proc(QuickJS::JSContext, QuickJS::JSValue, LibC::Int, Pointer(QuickJS::JSValue), QuickJS::JSValue)) : Nil
Source
call_global(name : String, arguments : Array = [] of ValueWrapper) : ValueWrapper
Source
close
Source
closed?
Source
compile(source_code : String, tag : String = "<compile>") : Bytes
Source
drain_jobs
Source
engine
Source
eval!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
Source
eval_mutex!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
Source
finalize
Source
gc_threshold=(threshold : UInt64) : Nil
Source
get_global(name : String) : ValueWrapper | Nil
Source
json_stringify(obj : ValueWrapper) : String
Source
load_auto!(path : String) : ValueWrapper
Source
load_bytecode(bytecode : Bytes) : ValueWrapper
Source
load_file!(path : String) : ValueWrapper
Source
load_module!(path : String) : ValueWrapper
Source
max_stack_size=(size : UInt64) : Nil
Source
memory_limit=(limit : UInt64) : Nil
Source
memory_usage
Source
parse_json(input : String) : ValueWrapper
Source
run_gc
Source
set_global(name : String, value) : Nil
Source

Nested types