Auto merge of #22480 - cdeler:implement-DOMException-constructor, r=jdm

Implement dom exception constructor

The constructor method was implemented

I have a question: should I edit `./mach test-wpt` expectations?

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22412
- [x] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22480)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-03-20 16:13:17 -04:00 committed by GitHub
commit 6d308c3577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
158 changed files with 553 additions and 522 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