I'm trying to understand in depth the concept of Javascript realms. However, I'm still having many problems with getting it correctly. First of all, I do not know how does the browser, lets say - Chrome, is able to create different JS realms for each tab. I'm looking for a deep explanation. Is there some API (JS API or Web API) for that excluding iframes? Or maybe it is something internal to V8?
Asked
Active
Viewed 99 times
0
-
https://stackoverflow.com/questions/49832187/how-to-understand-js-realms – weegee May 23 '19 at 18:17
-
I have read it already. It does not answer my questions. – leszczu450 May 23 '19 at 18:28
-
I don't think realms are first-class objects, there's no API for them. It's just the way the JavaScript implementation keeps each execution context separate. – Barmar May 23 '19 at 19:12