The WorkerLocation interface defines the absolute location of the script executed by the Worker.
WorkerLocation
MDN Reference