Mypal/dom/webidl/Promise.webidl

21 lines
678 B
Plaintext
Raw Normal View History

2019-03-11 10:26:37 +00:00
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/.
*
2020-03-12 17:39:40 +00:00
* This IDL file contains utilities to help connect JS promises to our
* Web IDL infrastructure.
2019-03-11 10:26:37 +00:00
*/
callback PromiseJobCallback = void();
[TreatNonCallableAsNull]
callback AnyCallback = any (any value);
// Hack to allow us to have JS owning and properly tracing/CCing/etc a
// PromiseNativeHandler.
[NoInterfaceObject,
Exposed=(Window,Worker,System)]
interface PromiseNativeHandler {
};