diff --git a/std/js/html/URL.hx b/std/js/html/URL.hx index 6dafc827855..19b686ecd1b 100644 --- a/std/js/html/URL.hx +++ b/std/js/html/URL.hx @@ -113,12 +113,14 @@ extern class URL { var hash : String; /** @throws DOMError */ - function new( url : String, ?base : String ) : Void; + function new( url : String, ?base : EitherType ); + /** Returns a JSON representation of this URL. **/ function toJSON() : String; + /** Returns a string representation of this URL. **/ function toString() : String;