Medusa::Sandbox
Inherits Reference < Object
Constants
Log = ::Log.for(self)
Constructors
new
Sourcenew(*, raw : Bool)
SourceInstance methods
bind(name : String, arg_count : Int32 = 0, &block : Array(ValueWrapper) -> _) : Nil
Sourcebind_raw(name : String, arg_count : Int32 = 0, &block : Proc(QuickJS::JSContext, QuickJS::JSValue, LibC::Int, Pointer(QuickJS::JSValue), QuickJS::JSValue)) : Nil
Sourcecall_global(name : String, arguments : Array = [] of ValueWrapper) : ValueWrapper
Sourceclose
Sourceclosed?
Sourcecompile(source_code : String, tag : String = "<compile>") : Bytes
Sourcedrain_jobs
Sourceengine
Sourceeval!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
Sourceeval_mutex!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
Sourcefinalize
Sourcegc_threshold=(threshold : UInt64) : Nil
Sourceget_global(name : String) : ValueWrapper | Nil
Sourcejson_stringify(obj : ValueWrapper) : String
Sourceload_auto!(path : String) : ValueWrapper
Sourceload_bytecode(bytecode : Bytes) : ValueWrapper
Sourceload_file!(path : String) : ValueWrapper
Sourceload_module!(path : String) : ValueWrapper
Sourcemax_stack_size=(size : UInt64) : Nil
Sourcememory_limit=(limit : UInt64) : Nil
Sourcememory_usage
Sourceparse_json(input : String) : ValueWrapper
Sourcerun_gc
Sourceset_global(name : String, value) : Nil
Source