Open playXE opened 3 years ago
This should allow running JS code in the specific realm much easier. Also we probably want to define pub type JsGlobalObject = TypedJsObject<JsGlobal>. Inside JsGlobal we have to add RuntimRef so it is possible to access VM from the global object.
pub type JsGlobalObject = TypedJsObject<JsGlobal>
RuntimRef
This should allow running JS code in the specific realm much easier. Also we probably want to define
pub type JsGlobalObject = TypedJsObject<JsGlobal>
. Inside JsGlobal we have to addRuntimRef
so it is possible to access VM from the global object.