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>.
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
Runtimeobject 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>.