Back to Content

WorkletGlobalScope

files/en-us/web/api/workletglobalscope/index.md

latest777 B
Original Source

{{APIRef("HTML DOM")}}{{SecureContext_Header}}

The WorkletGlobalScope interface is an abstract class that specific worklet scope classes inherit from. Each WorkletGlobalScope defines a new global environment.

[!NOTE] You don't normally need to interact with this interface. It is a base interface intended to be subclassed. You will encounter the subclasses {{domxref("AudioWorkletGlobalScope")}} inside {{domxref("AudioWorklet")}} objects, or {{domxref("PaintWorkletGlobalScope")}} inside CSS paint {{domxref("Worklet")}} objects.

Instance properties

None.

Instance methods

None.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{domxref("AudioWorkletGlobalScope")}}
  • {{domxref("PaintWorkletGlobalScope")}}