Starlight-JS / starlight

JS engine in Rust
https://teletype.in/@starlight-js
Mozilla Public License 2.0
509 stars 9 forks source link

Pass `TypedJsObject<JsGlobal>` instead of `Runtime` in most of the functions #89

Open playXE opened 3 years ago

playXE commented 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.