Skip to content

[worklets] Allow lazy construction of WorkletGlobalScope. #422

Open
@hoch

Description

@hoch

In the section 2.2, the step 10 in the algorithm:

If the worklet’s WorkletGlobalScopes is empty, run the following steps:
1. Create a WorkletGlobalScope given workletGlobalScopeType, moduleResponsesMap, 
   and outsideSettings.
2. Add the WorkletGlobalScope to worklet’s WorkletGlobalScopes.

For AudioWorklet, the worklet global scope is associated with BaseAudioContext and it should be created when the context is constructed. The current spec text does not allow that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions