location

The location read-only property of the WorkerGlobalScope interface returns the WorkerLocation associated with the worker.

MDN Reference