implemented missed constructor for DOMException; fixed the tests expectations

This commit is contained in:
cdeler 2019-01-05 22:20:25 +03:00
parent 34fda66dfa
commit 220a471b14
5 changed files with 95 additions and 520 deletions

View file

@ -7,7 +7,11 @@
* https://heycam.github.io/webidl/#es-DOMException-constructor-object
*/
[ExceptionClass, Exposed=(Window,Worker)]
[
ExceptionClass,
Exposed=(Window,Worker),
Constructor(optional DOMString message="", optional DOMString name="Error")
]
interface DOMException {
const unsigned short INDEX_SIZE_ERR = 1;
const unsigned short DOMSTRING_SIZE_ERR = 2; // historical