summaryrefslogtreecommitdiffstats
path: root/dom/webidl/PromiseDebugging.webidl
diff options
context:
space:
mode:
authorNew Tobin Paradigm <email@mattatobin.com>2019-12-18 23:07:31 -0500
committerGitHub <noreply@github.com>2019-12-18 23:07:31 -0500
commit3332f584c829aaac455d688c6c073937442c4c7f (patch)
tree741e4325721d1d8d9970e075320262097d3cbeb1 /dom/webidl/PromiseDebugging.webidl
parent8220776c9b2e8291f0414f98ac20fbda30e00d2e (diff)
parentc7ae364a887e9fb77196596d6e4345b455ab209f (diff)
downloadUXP-3332f584c829aaac455d688c6c073937442c4c7f.tar
UXP-3332f584c829aaac455d688c6c073937442c4c7f.tar.gz
UXP-3332f584c829aaac455d688c6c073937442c4c7f.tar.lz
UXP-3332f584c829aaac455d688c6c073937442c4c7f.tar.xz
UXP-3332f584c829aaac455d688c6c073937442c4c7f.zip
Merge pull request #1330 from MoonchildProductions/DOM-promise-removal
DOM `Promise` removal
Diffstat (limited to 'dom/webidl/PromiseDebugging.webidl')
-rw-r--r--dom/webidl/PromiseDebugging.webidl44
1 files changed, 0 insertions, 44 deletions
diff --git a/dom/webidl/PromiseDebugging.webidl b/dom/webidl/PromiseDebugging.webidl
index 107b8bc65..1a5c1aa32 100644
--- a/dom/webidl/PromiseDebugging.webidl
+++ b/dom/webidl/PromiseDebugging.webidl
@@ -38,11 +38,7 @@ callback interface UncaughtRejectionObserver {
* caught, i.e. if its `then` callback is called, `onConsumed` will
* be called.
*/
-#ifdef SPIDERMONKEY_PROMISE
void onLeftUncaught(object p);
-#else
- void onLeftUncaught(Promise<any> p);
-#endif SPIDERMONKEY_PROMISE
/**
* A Promise previously left uncaught is not the last in its
@@ -51,11 +47,7 @@ callback interface UncaughtRejectionObserver {
* @param p A Promise that was previously left in uncaught state is
* now caught, i.e. it is not the last in its chain anymore.
*/
-#ifdef SPIDERMONKEY_PROMISE
void onConsumed(object p);
-#else
- void onConsumed(Promise<any> p);
-#endif SPIDERMONKEY_PROMISE
};
[ChromeOnly, Exposed=(Window,System)]
@@ -105,42 +97,6 @@ interface PromiseDebugging {
[Throws]
static object? getFullfillmentStack(object p);
-#ifndef SPIDERMONKEY_PROMISE
- /**
- * Get the promises directly depending on a given promise. These are:
- *
- * 1) Return values of then() calls on the promise
- * 2) Return values of Promise.all() if the given promise was passed in as one
- * of the arguments.
- * 3) Return values of Promise.race() if the given promise was passed in as
- * one of the arguments.
- *
- * Once a promise is settled, it will generally notify its dependent promises
- * and forget about them, so this is most useful on unsettled promises.
- *
- * Note that this function only returns the promises that directly depend on
- * p. It does not recursively return promises that depend on promises that
- * depend on p.
- */
- [Throws]
- static sequence<Promise<any>> getDependentPromises(object p);
-
- /**
- * Get the number of milliseconds elapsed since the given promise was created.
- */
- [Throws]
- static DOMHighResTimeStamp getPromiseLifetime(object p);
-
- /*
- * Get the number of milliseconds elapsed between the promise being created
- * and being settled. Throws NS_ERROR_UNEXPECTED if the promise has not
- * settled.
- */
- [Throws]
- static DOMHighResTimeStamp getTimeToSettle(object p);
-
-#endif // SPIDERMONKEY_PROMISE
-
/**
* Watching uncaught rejections on the current thread.
*