The pathname
property of the URL
interface is a USVString
containing an initial '/'
followed by the path of the URL not including the query string or fragment (or the empty string if there is no path).
Note: This feature is available in Web Workers