Skip to content

V8: GC for Rust Objects #748

Description

@Sharktheone

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. The Rc 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    javascriptAny issues related to JavaScriptjavascript apiAny issues related to our API interaction with the javascript engine

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    📆 Next up

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions