class
Medusa::Sandbox
- Medusa::Sandbox
- Reference
- Object
Defined in:
medusa/sandbox.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
- #bind(name : String, arg_count : Int32 = 0, &block : Array(ValueWrapper) -> _) : Nil
- #bind_raw(name : String, arg_count : Int32 = 0, &block : Proc(QuickJS::JSContext, QuickJS::JSValue, LibC::Int, Pointer(QuickJS::JSValue), QuickJS::JSValue)) : Nil
- #call_global(name : String, arguments : Array = [] of ValueWrapper) : ValueWrapper
- #close : Nil
- #closed? : Bool
- #compile(source_code : String, tag : String = "<compile>") : Bytes
- #drain_jobs : Int32
- #engine : Engine
- #eval!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
- #eval_mutex!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
- #finalize
- #gc_threshold=(threshold : UInt64) : Nil
- #get_global(name : String) : ValueWrapper | Nil
- #json_stringify(obj : ValueWrapper) : String
- #load_auto!(path : String) : ValueWrapper
- #load_bytecode(bytecode : Bytes) : ValueWrapper
- #load_file!(path : String) : ValueWrapper
- #load_module!(path : String) : ValueWrapper
- #max_stack_size=(size : UInt64) : Nil
- #memory_limit=(limit : UInt64) : Nil
- #memory_usage : QuickJS::JSMemoryUsage
- #parse_json(input : String) : ValueWrapper
- #run_gc : Nil
- #set_global(name : String, value) : Nil
Constructor Detail
Instance Method Detail
def bind_raw(name : String, arg_count : Int32 = 0, &block : Proc(QuickJS::JSContext, QuickJS::JSValue, LibC::Int, Pointer(QuickJS::JSValue), QuickJS::JSValue)) : Nil
#
def eval!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
#
def eval_mutex!(source_code : String, flag : QuickJS::EvalFlag = QuickJS::EvalFlag::STRICT, tag : String = "<input>") : ValueWrapper
#