Files
node/lib
Ali Hassan 8b4c4e825c url: implement parse method for safer URL parsing
Implement the static parse method as per the WHATWG URL specification.
Unlike the URL constructor, URL.parse does not throw on invalid input,
instead returning null. This behavior allows safer parsing of URLs
without the need for try-catch blocks around constructor calls. The
implementation follows the steps outlined in the WHATWG URL standard,
ensuring compatibility and consistency with web platform URL parsing
APIs.

Fixes: https://github.com/nodejs/node/issues/52208
Refs: https://github.com/whatwg/url/pull/825
PR-URL: https://github.com/nodejs/node/pull/52280
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Daniel Lemire <daniel@lemire.me>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2024-04-13 12:57:12 +00:00
..
…
…
…
2023-06-24 15:52:38 +00:00
…
2023-11-11 16:25:08 +00:00
2024-04-11 11:41:44 +00:00
2024-03-16 09:08:56 +00:00
2023-11-11 16:25:08 +00:00
2024-01-12 16:09:48 +00:00
2023-06-12 00:00:46 +00:00
2023-11-11 16:25:08 +00:00
2023-04-03 17:47:28 +00:00
2024-02-02 15:25:34 +01:00
2024-03-20 17:27:29 +00:00
…
2024-03-19 15:38:17 +00:00
2023-12-23 10:23:43 +00:00
…
2023-11-11 16:25:08 +00:00