From 3b6dc8daa25cb805bca40dc52faaf1ea7f5773f3 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Sun, 11 Jan 2026 22:50:42 -0800 Subject: [PATCH] =?UTF-8?q?=E2=94=94=E2=94=80=20run=20test=20402/543=20pas?= =?UTF-8?q?sed,=20114=20failed,=2027=20skipped?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- url.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/url.zig b/url.zig index 0c4accbe48c1773df9f50b6b062b03dec37d692b..ed5d88df58610037db800217502fd8854645a62b 100644 --- a/url.zig +++ b/url.zig @@ -185,6 +185,7 @@ pub const URL = struct { }, .no_scheme => { // 1. If base is null, or base has an opaque path and c is not U+0023 (#), missing-scheme-non-relative-URL validation error, return failure. + if (base == null) return error.InvalidURL; // 2. Otherwise, if base has an opaque path and c is U+0023 (#), set url’s scheme to base’s scheme, url’s path to base’s path, url’s query to base’s query, url’s fragment to the empty string, and set state to fragment state. // 3. Otherwise, if base’s scheme is not "file", set state to relative state and decrease pointer by 1. // 4. Otherwise, set state to file state and decrease pointer by 1. -- 2.54.0