can a js URL object be a long number?

new URL(`http://12345678901`) is not valid but new URL(`http://1234567890`) and new URL(`http://a12345678901`) are.

try logging new URL(`http://12345678901`)

//these work
console.log(new URL(`http://1234567890`))
console.log(new URL(`http://a12345678901`))

Here’s the error in chrome:

VM2064:1 Uncaught TypeError: Failed to construct ‘URL’: Invalid URL at :1:1 (anonymous) @ VM2064:1

Firefox:

Uncaught TypeError: URL constructor: http://12345678901234567890:5000 is not a valid URL.
debugger eval code:1
debugger eval code:1:1
debugger eval code:1

I expect the url to work. I tried reading https://url.spec.whatwg.org/#concept-basic-url-parser but it’s very dense and I don’t really understand it.