mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Because the type returned by to_string is a String, _not_ an
Optional<String>, the following code:
if (serialized_query.is_empty())
serialized_query = {};
Was achieving nothing at all! Make sure that the type is an
Optional<String> so that we're not just setting an empty string to an
empty string.
10 lines
232 B
HTML
10 lines
232 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let url = new URL("https://www.birdoftheyear.org.nz/?")
|
|
println(url.href);
|
|
url.searchParams.sort()
|
|
println(url.href);
|
|
});
|
|
</script>
|