2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2013-06-12 05:41:21 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* 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/.
|
|
|
|
*
|
2016-12-20 02:38:42 +03:00
|
|
|
* This IDL file contains utilities to help connect JS promises to our
|
|
|
|
* Web IDL infrastructure.
|
2013-06-12 05:41:21 +04:00
|
|
|
*/
|
|
|
|
|
2016-02-10 01:40:31 +03:00
|
|
|
callback PromiseJobCallback = void();
|
|
|
|
|
2019-03-19 07:33:32 +03:00
|
|
|
[TreatNonCallableAsNull]
|
2013-11-19 22:39:51 +04:00
|
|
|
callback AnyCallback = any (any value);
|
2013-06-12 05:41:21 +04:00
|
|
|
|
2016-02-10 01:40:31 +03:00
|
|
|
// Hack to allow us to have JS owning and properly tracing/CCing/etc a
|
|
|
|
// PromiseNativeHandler.
|
2018-10-21 03:02:53 +03:00
|
|
|
[NoInterfaceObject, Exposed=(Window,Worker)]
|
2016-02-10 01:40:31 +03:00
|
|
|
interface PromiseNativeHandler {
|
|
|
|
};
|