diff options
Diffstat (limited to 'components/script/dom/webidls/URL.webidl')
-rw-r--r-- | components/script/dom/webidls/URL.webidl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/webidls/URL.webidl b/components/script/dom/webidls/URL.webidl index 334100a3bfe..31425fcd843 100644 --- a/components/script/dom/webidls/URL.webidl +++ b/components/script/dom/webidls/URL.webidl @@ -3,8 +3,9 @@ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ // https://url.spec.whatwg.org/#url -[Constructor(USVString url, optional USVString base), Exposed=(Window,Worker)] +[Exposed=(Window,Worker)] interface URL { + [Throws] constructor(USVString url, optional USVString base); [SetterThrows] /*stringifier*/ attribute USVString href; readonly attribute USVString origin; |