Auto merge of #22170 - CYBAI:fix-promiserejectevent, r=jdm

Fix PromiseRejectionEvent constructor when promise argument is None

Due to lack of `required` of the `promise` argument in webidl, we need to handle this so that it can be correct behavior. And then the constructor test will be passed!

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [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/22170)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-11-16 12:27:08 -05:00 committed by GitHub
commit 369983211d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -1,5 +0,0 @@
[promise-rejection-event-constructor.html]
type: testharness
[This tests the constructor for the PromiseRejectionEvent DOM class.]
expected: FAIL