URL constructor overload support

Allow URL constructor to be created with another URL or an HTML element.

Add URL set_search method.

Remove no-longer-used url/query.zig
This commit is contained in:
Karl Seguin
2025-06-04 17:07:04 +08:00
parent 8de57ec0e0
commit 1090ff0175
4 changed files with 86 additions and 486 deletions

View File

@@ -911,7 +911,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
// coerced to.
var coerce_index: ?usize = null;
// the first field that we find which the js_Value is
// the first field that we find which the js_value is
// compatible with. A compatible field has higher precedence
// than a coercible, but still isn't a perfect match.
var compatible_index: ?usize = null;