V8: GC for Rust Objects #748
Labels
javascript api
Any issues related to our API interaction with the javascript engine
javascript
Any issues related to JavaScript
In V8, we can use the GC to directly tie the Rust Struct to the JS Object. We Probably should use that because the current implementation uses a
Rc<RefCell>
mess. TheRc
gets cloned for every method that might be executed and needs a Reference to the struct itself.Additionally, the old approach with a
Rc
does not work when we correctly make use of the prototypes in JS.Somehow still need to be able to use the Objects Allocated on the V8 heap without knowing that they live on and are managed by the V8 heap.
The text was updated successfully, but these errors were encountered: