workerGlobalScope top-level property

dynamic get workerGlobalScope

This Web Workers API interface is an interface representing the scope of any worker. Workers have no browsing context; this scope contains the information usually conveyed by Window objects — in this case event handlers, the console or the associated WorkerNavigator object. Each WorkerGlobalScope has its own event loop.

MDN Reference

Implementation

_i2.dynamic get workerGlobalScope => _i4.getProperty(
      _self,
      'WorkerGlobalScope',
    );