mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1323721 part 2. Remove the no longer used PromiseInit callback type. r=till
This commit is contained in:
parent
b73f3a1a8c
commit
054c6d2088
@ -3,15 +3,10 @@
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dom.spec.whatwg.org/#promises
|
||||
* This IDL file contains utilities to help connect JS promises to our
|
||||
* Web IDL infrastructure.
|
||||
*/
|
||||
|
||||
// TODO We use object instead Function. There is an open issue on WebIDL to
|
||||
// have different types for "platform-provided function" and "user-provided
|
||||
// function"; for now, we just use "object".
|
||||
callback PromiseInit = void (object resolve, object reject);
|
||||
|
||||
callback PromiseJobCallback = void();
|
||||
|
||||
[TreatNonCallableAsNull]
|
||||
|
@ -70,7 +70,7 @@ interface TestInterfaceJS : EventTarget {
|
||||
|
||||
// Tests for promise-rejection behavior
|
||||
Promise<void> testPromiseWithThrowingChromePromiseInit();
|
||||
Promise<void> testPromiseWithThrowingContentPromiseInit(PromiseInit func);
|
||||
Promise<void> testPromiseWithThrowingContentPromiseInit(Function func);
|
||||
Promise<void> testPromiseWithDOMExceptionThrowingPromiseInit();
|
||||
Promise<void> testPromiseWithThrowingChromeThenFunction();
|
||||
Promise<void> testPromiseWithThrowingContentThenFunction(AnyCallback func);
|
||||
|
Loading…
Reference in New Issue
Block a user