Post #4481759
2026-08-10 07:37 UTC
And 🤫
JS:
a = new URL('example.com');
Uncaught TypeError: URL constructor: example.com is not a valid URL.
Technically that might be correct, but
a = new URL('example.com:');
URL { href: "example.com:", origin: "null", protocol: "example.com:", username: "", password: "", host: "", hostname: "", port: "", pathname: "", search: "" }
🤯
Replies (0)
No replies.