Closed
Description
To reproduce, install the library with npm and then create a file with the following lines:
var URI = require("urijs");
var google = new URI('http://www.google.com');
google.absoluteTo("http://");
Running node test.js
gives me this error: TypeError: Hostname cannot be empty, if protocol is http