-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Open
Labels
integrationBetter coordination across standards neededBetter coordination across standards neededtopic: agentThe interaction with JavaScript's agent and agent cluster conceptsThe interaction with JavaScript's agent and agent cluster conceptstopic: event looptopic: worklets
Description
As @mhofman discovered in tc39/proposal-shadowrealm#398 (comment) there's something broken about the current setup. Agents are assumed to be 1:1 with an event loop, but we don't define an event loop for worklets (as we don't want them to have one). However, this means that certain features such as FinalizationRegistry
effectively crash (see HostEnqueueFinalizationRegistryCleanupJob(finalizationRegistry)).
I think this means we either need to have non-event-loop agents that don't expose these features or we need to give worklets a minimal event loop. I think the latter is very much undesirable for good audio, but I'll defer to @padenot on that.
Metadata
Metadata
Assignees
Labels
integrationBetter coordination across standards neededBetter coordination across standards neededtopic: agentThe interaction with JavaScript's agent and agent cluster conceptsThe interaction with JavaScript's agent and agent cluster conceptstopic: event looptopic: worklets