diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-02-03 07:53:17 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-03 07:53:17 -0800 |
commit | cbcafd18f4cb5973948b081b4c104d99735e2789 (patch) | |
tree | cac6c703de3270a6507c6668be872f2610f8dee7 /components/script/lib.rs | |
parent | 536c0d74994bf8b5eaef3f64247753d75ba7baab (diff) | |
parent | 60d1717eca5469c8203861c17ad139160e8c1424 (diff) | |
download | servo-cbcafd18f4cb5973948b081b4c104d99735e2789.tar.gz servo-cbcafd18f4cb5973948b081b4c104d99735e2789.zip |
Auto merge of #15189 - jdm:microtasks, r=nox
Implement microtask checkpoints
This generalizes the work previously done for Promise job callbacks. There is now a microtask queue that correctly processes all queued microtasks after each turn of the event loop, as well as after a scripted callback finishes executing, and after a classic script executes.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #4283
- [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/15189)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/lib.rs')
-rw-r--r-- | components/script/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script/lib.rs b/components/script/lib.rs index 8c85efb489f..9cc8f84bbde 100644 --- a/components/script/lib.rs +++ b/components/script/lib.rs @@ -109,6 +109,7 @@ mod dom; pub mod fetch; pub mod layout_wrapper; mod mem; +mod microtask; mod network_listener; pub mod origin; pub mod script_runtime; |