var url = new URL('unicorn://example.com/i/dont/even/know')
url.pathname === undefined | '' 
Have to read the spec again. Chrome doesn't parse the URL at all and returns an empty object with all attributes set to undefined (I don't think that's what the spec says) whereas Firefox returns an empty string. Sigh.