mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-23 09:22:30 +00:00
23 lines
605 B
HTML
23 lines
605 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
const urls = [
|
|
{ input: 'file://xn--/p' },
|
|
{ input: 'http://0xffffffff1' },
|
|
];
|
|
|
|
for (url of urls) {
|
|
if (url.base === undefined)
|
|
println(`new URL('${url.input}', ${url.base})`);
|
|
else
|
|
println(`new URL('${url.input}', '${url.base}')`);
|
|
|
|
try {
|
|
new URL(url.input, url.base);
|
|
} catch (e) {
|
|
println(`error creating URL: '${e}'`);
|
|
}
|
|
}
|
|
});
|
|
</script>
|