Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/url.js')
-rw-r--r--lib/internal/url.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/internal/url.js b/lib/internal/url.js
index 3c464ffbd63..b82c36db92e 100644
--- a/lib/internal/url.js
+++ b/lib/internal/url.js
@@ -419,8 +419,6 @@ ObjectDefineProperties(URL.prototype, {
domainToUnicode(this.hostname) : this.hostname;
if (ctx.port !== null)
ret += `:${ctx.port}`;
- } else if (ctx.scheme === 'file:') {
- ret += '//';
}
if (this[cannotBeBase]) {
ret += ctx.path[0];
@@ -504,10 +502,6 @@ ObjectDefineProperties(URL.prototype, {
if (scheme.length === 0)
return;
const ctx = this[context];
- if (ctx.scheme === 'file:' &&
- (ctx.host === '' || ctx.host === null)) {
- return;
- }
parse(scheme, kSchemeStart, null, ctx,
onParseProtocolComplete.bind(this));
}