Skip to content

Conversation

@sjorsdonkers
Copy link
Contributor

@sjorsdonkers sjorsdonkers commented Apr 29, 2025

  • Only the main world page holds a HandleScope and an opened Context

  • Isolated Worlds do not hold a HandleScope and the Context is closed by default

  • An isolatedWorld context can only be made when there is a page

  • v8.context no longer live on the scope allowing the isolated world to be constructed after the page creation.

Note, we should probably:

  • rename Executor to World
  • rename Scope to Context
  • store the HandleScope in the SessionState
  • rename the createIsolatedWorld function to something similar to createPage, since the world already exists, adoptPage?, embracePage, assimilatePage? navigatePage, reset/reinitwithPage

[Feel free to merge if approved]

@sjorsdonkers sjorsdonkers requested a review from karlseguin April 29, 2025 21:24
@karlseguin karlseguin merged commit 27d1f79 into main Apr 30, 2025
12 checks passed
@karlseguin karlseguin deleted the share-state-and-global-with-the-isolated branch April 30, 2025 11:55
@github-actions github-actions bot locked and limited conversation to collaborators Apr 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants