dicksword_is_breaking_gdpr
How to have private state in embedded deno_core JsRuntime?
I need to either keep a reference in rust to an object I then
delete globalThis.__context
, but I can't do this since values I get from runtime.handle_scope()
are Local
and need a mutable reference to runtime, and I don't think I can make them global, since that also requires a mutable reference to runtime to get the isolate. Another option that works would be keeping the state in rust and accessing it through ops, but I'm not sure how to do that either.
19 replies