workerLocation top-level property

dynamic get workerLocation

The absolute location of the script executed by the Worker. Such an object is initialized for each worker and is available via the WorkerGlobalScope.location property obtained by calling self.location.

MDN Reference

Implementation

_i2.dynamic get workerLocation => _i4.getProperty(
      _self,
      'WorkerLocation',
    );