Skip to content

Conversation

@karlseguin
Copy link
Collaborator

This adds support for:

new URLSearchParams({over: 9000});

The spec says that any thing that produces/iterates a sequence of string pairs is valid. By using the lower-level JsObject, this hopefully takes care of the most common cases. But I don't think it's complete, and I don't think we currently capture enough data to make this work. There's no way for the JS runtime to know if a value (say, a netsurf instance, or even a Zig instance) provides an string=>string iterator.

This adds support for:

```
new URLSearchParams({over: 9000});
```

The spec says that any thing that produces/iterates a sequence of string pairs
is valid. By using the lower-level JsObject, this hopefully takes care of the
most common cases. But I don't think it's complete, and I don't think we
currently capture enough data to make this work. There's no way for the JS
runtime to know if a value (say, a netsurf instance, or even a Zig instance)
provides an string=>string iterator.
@karlseguin karlseguin merged commit 09466a2 into main Jun 6, 2025
11 checks passed
@karlseguin karlseguin deleted the url_search_parmas_from_object branch June 6, 2025 05:22
@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants