Skip to content

Allow references for objects that outlive the Runtime #569

@Sytten

Description

@Sytten

Currently if you try to pass a reference and set it to the ctx.globals(), it needs to be static.
But in theory as long as it outlives the Runtime object it should be safe.
Unsure if @DelSkayn or @richarddd you had tried that in the past and didn't manage to make it work.
It might be a rust limitation with the for<'js>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:featureA request, idea or new functionalitytopic:interfaceRelated to safe abstractions over the primitivestopic:macroRelated to macros

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions