Files
servo/components/script/dom
bors-servo 852223b08a Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdm
Refactor promise compartment

<!-- Please describe your changes on the following line: -->
This PR adds a mechanism to verify that certain code is executed inside a ```JSAutoCompartment```, and applies this to the ```Promise::new_in_current_compartment``` constructor.

r? @jdm

---
<!-- 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 #23167

<!-- Either: -->
- [x] These changes do not require tests because they do not change existing functionality.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/23253)
<!-- Reviewable:end -->
2019-04-29 13:59:04 -04:00
..
2019-03-10 17:51:35 +01:00
2019-04-25 11:37:35 +02:00
2019-04-25 11:37:35 +02:00
2019-04-25 11:37:35 +02:00
2018-11-19 14:47:12 +01:00
2018-11-19 14:47:12 +01:00
2018-11-19 14:47:12 +01:00
2019-03-26 09:39:07 +02:00
2018-11-19 14:47:12 +01:00
2019-03-10 17:51:35 +01:00
2019-01-23 00:38:44 +08:00
2019-01-23 00:38:44 +08:00
2019-03-10 17:51:35 +01:00
2019-04-19 16:50:38 -07:00
2019-04-25 11:37:35 +02:00
2019-04-25 11:37:35 +02:00
2019-03-10 17:51:35 +01:00
2019-04-25 11:37:35 +02:00
2018-11-19 14:47:12 +01:00
2019-04-19 16:50:38 -07:00
2019-01-29 11:37:00 -08:00
2018-11-27 17:33:13 -08:00
2019-04-26 12:00:26 +02:00
2019-01-04 15:27:23 +01:00
2019-04-25 11:37:35 +02:00
2018-11-19 14:47:12 +01:00
2019-01-04 15:27:23 +01:00
2019-03-10 17:51:35 +01:00
2019-01-10 22:43:29 +08:00
2018-11-19 14:47:12 +01:00
2019-04-25 11:37:35 +02:00
2018-11-19 14:47:12 +01:00
2019-04-19 16:50:38 -07:00
2019-04-19 16:50:38 -07:00
2019-04-25 11:37:35 +02:00
2019-04-25 11:37:35 +02:00
2019-04-04 17:22:08 -07:00
2019-01-03 23:53:50 -08:00
2019-04-25 11:37:35 +02:00
2019-04-04 17:45:09 -07:00
2019-04-03 23:55:33 -07:00
2019-03-26 00:09:15 -07:00
2019-01-03 23:53:50 -08:00