Skip to content

lib,url: correct URL's argument to pass idlharness

url.idl defines URL's constructor as:

constructor(USVString url, optional USVString base);

idlharness.any.js checks its length as 1. So we should remove constructor's second argument and use arguments[1] in constructor's logic.

Refs: https://url.spec.whatwg.org/#idl-index

Merge request reports

Loading