summaryrefslogtreecommitdiffstats
path: root/dom/promise/PromiseDebugging.h
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/promise/PromiseDebugging.h
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/promise/PromiseDebugging.h')
-rw-r--r--dom/promise/PromiseDebugging.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/dom/promise/PromiseDebugging.h b/dom/promise/PromiseDebugging.h
index 218a64c2e..77397b841 100644
--- a/dom/promise/PromiseDebugging.h
+++ b/dom/promise/PromiseDebugging.h
@@ -52,37 +52,17 @@ public:
JS::MutableHandle<JSObject*> aStack,
ErrorResult& aRv);
-#ifndef SPIDERMONKEY_PROMISE
- static void GetDependentPromises(GlobalObject&,
- JS::Handle<JSObject*> aPromise,
- nsTArray<RefPtr<Promise>>& aPromises,
- ErrorResult& aRv);
- static double GetPromiseLifetime(GlobalObject&,
- JS::Handle<JSObject*> aPromise,
- ErrorResult& aRv);
- static double GetTimeToSettle(GlobalObject&, JS::Handle<JSObject*> aPromise,
- ErrorResult& aRv);
-#endif // SPIDERMONKEY_PROMISE
-
// Mechanism for watching uncaught instances of Promise.
static void AddUncaughtRejectionObserver(GlobalObject&,
UncaughtRejectionObserver& aObserver);
static bool RemoveUncaughtRejectionObserver(GlobalObject&,
UncaughtRejectionObserver& aObserver);
-#ifdef SPIDERMONKEY_PROMISE
// Mark a Promise as having been left uncaught at script completion.
static void AddUncaughtRejection(JS::HandleObject);
// Mark a Promise previously added with `AddUncaughtRejection` as
// eventually consumed.
static void AddConsumedRejection(JS::HandleObject);
-#else
- // Mark a Promise as having been left uncaught at script completion.
- static void AddUncaughtRejection(Promise&);
- // Mark a Promise previously added with `AddUncaughtRejection` as
- // eventually consumed.
- static void AddConsumedRejection(Promise&);
-#endif // SPIDERMONKEY_PROMISE
// Propagate the informations from AddUncaughtRejection
// and AddConsumedRejection to observers.
static void FlushUncaughtRejections();