Skip to content

url: prevent pathname setter from erasing path of path-only URLs

This change prevents the pathname setter from erasing the path of path-only URLs as that would make them cannot-be-a-base URLs.

The changes in all files except src/node_url.cc have been done by running:

git node wpt url

Fixes: https://github.com/nodejs/node/issues/39059 Signed-off-by: Darshan Sen darshan.sen@postman.com

Merge request reports

Loading