mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
url: use ada::url_aggregator for parsing urls
PR-URL: https://github.com/nodejs/node/pull/47339 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
This commit is contained in:
parent
26a967f6d0
commit
3867641c14
9 changed files with 481 additions and 266 deletions
|
@ -58,9 +58,7 @@ const {
|
|||
urlToHttpOptions,
|
||||
} = require('internal/url');
|
||||
|
||||
const {
|
||||
formatUrl,
|
||||
} = internalBinding('url');
|
||||
const bindingUrl = internalBinding('url');
|
||||
|
||||
const { getOptionValue } = require('internal/options');
|
||||
|
||||
|
@ -635,7 +633,7 @@ function urlFormat(urlObject, options) {
|
|||
}
|
||||
}
|
||||
|
||||
return formatUrl(urlObject.href, fragment, unicode, search, auth);
|
||||
return bindingUrl.format(urlObject.href, fragment, unicode, search, auth);
|
||||
}
|
||||
|
||||
return Url.prototype.format.call(urlObject);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue