diff --git a/lib/internal/url.js b/lib/internal/url.js index 630c69d2cbaf81..3dc317a8bbb7c3 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -1043,7 +1043,6 @@ function originFor(url, base) { case 'https:': case 'ws:': case 'wss:': - case 'file': origin = new TupleOrigin(protocol.slice(0, -1), url[context].host, url[context].port,