Document Uri.js constructor and methods throwing Errors
authorThiemo Kreuz <thiemo.kreuz@wikimedia.de>
Wed, 23 Jan 2019 21:01:07 +0000 (22:01 +0100)
committerThiemo Kreuz (WMDE) <thiemo.kreuz@wikimedia.de>
Thu, 24 Jan 2019 08:22:30 +0000 (08:22 +0000)
commit7ecd6b9ce64ed54b4c893e17c8da0726702a5ab2
tree38784bdc28b501625eb0ed7a98f3cfd757da9d08
parent918d9d8371be3936ecf83d335b1a92a0d9181b9f
Document Uri.js constructor and methods throwing Errors

I, personally, think the fact an empty `new Uri()` call can fail with
an Error being thrown is a bug. But it seems others think this is a
feature (see Ib4dc568). Can we at least document it then? And then
somehow (not sure how) tell everybody who ever used this class to fix
their code?

Change-Id: I86ef1ccf90f9be9c61bc6a8312369ae09d622b0c
resources/src/mediawiki.Uri/Uri.js