diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2016-09-22 15:23:23 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-22 15:23:23 -0500 |
commit | 2b1a39c2ae14b78e437551d05f0e691a13e5d183 (patch) | |
tree | 5dd0928564c243d200c932f6f0eaf00316f3004c /components/script/dom/headers.rs | |
parent | c48666a01ad8dfa48d351d631d5545843fa3646e (diff) | |
parent | e9c0606454ed50ef7f8aa0858aa211a146aebfcb (diff) | |
download | servo-2b1a39c2ae14b78e437551d05f0e691a13e5d183.tar.gz servo-2b1a39c2ae14b78e437551d05f0e691a13e5d183.zip |
Auto merge of #12830 - jdm:promises, r=Ms2ger
Implement promise bindings
This implements support for using Promises in WebIDL, executing promise callbacks in batches (equivalent to running all enqueued jobs from a setTimeout(0)), and attaching native callbacks to promise objects. This is the combined work of myself, @dati91, and @mmatyas based on the following prior work in Gecko:
* Codegen.py
* Promise.webidl
* Promise.cpp/Promise.h
* PromiseNativeHandler.h
This does not implement microtasks per #4283. This allows us to make progress on testing code that requires the use of Promises right now; the microtasks work is more complicated, but also largely orthogonal to implement.
Requires https://github.com/servo/mozjs/pull/89, https://github.com/servo/rust-mozjs/pull/287, and https://github.com/servo/rust-mozjs/pull/294.
---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #4282
- [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/12830)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/headers.rs')
0 files changed, 0 insertions, 0 deletions