mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-03 23:52:08 +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.
9 lines
232 B
HTML
9 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>
|