diff --git a/lib/URL-impl.js b/lib/URL-impl.js index 37efd70..de32d05 100644 --- a/lib/URL-impl.js +++ b/lib/URL-impl.js @@ -174,6 +174,7 @@ exports.implementation = class URLImpl { if (v === "") { url.query = null; + return; } const input = v[0] === "?" ? v.substring(1) : v;