Commit 00cac65a authored by Darshan Sen's avatar Darshan Sen Committed by Node.js GitHub Bot
Browse files

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:

```console
git node wpt url
```

Fixes: https://github.com/nodejs/node/issues/39059


Signed-off-by: default avatarDarshan Sen <darshan.sen@postman.com>

PR-URL: https://github.com/nodejs/node/pull/39060


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarKhaidi Chu <i@2333.moe>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarTiancheng "Timothy" Gu <timothygu99@gmail.com>
parent fdf625ba
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment