Closed playXE closed 3 years ago
We still should have an access to runtime and realm instance from global object. That's what JavaScriptCore has too
That also makes sense. So we also add runtimeRef
and realmRef
in JsGlobal
? WDYT?
So we also add runtimeRef and realmRef in JsGlobal?
Yep
I am working on implementing
create intrinsics
. I thinkJsGlobal
could be stored in therealm
. My opinion is that we could storerealm
andruntime
in acontext
. And each time,runtime
will first init, creating internal objects. And thencontext
be created, storingruntime
and initrealm
. Last,context
caneval
js code. WDYT?