diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-12-19 01:35:24 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-12-19 01:35:24 +0100 |
commit | fb96b43b5f6188233710c5f8c9c9e46baa9cb369 (patch) | |
tree | 54124a46275f833ecd9f6e63246e092a93843fb0 /dom/bindings/ToJSValue.cpp | |
parent | 8220776c9b2e8291f0414f98ac20fbda30e00d2e (diff) | |
download | UXP-fb96b43b5f6188233710c5f8c9c9e46baa9cb369.tar UXP-fb96b43b5f6188233710c5f8c9c9e46baa9cb369.tar.gz UXP-fb96b43b5f6188233710c5f8c9c9e46baa9cb369.tar.lz UXP-fb96b43b5f6188233710c5f8c9c9e46baa9cb369.tar.xz UXP-fb96b43b5f6188233710c5f8c9c9e46baa9cb369.zip |
Issue #1322 - Part 1: Remove the DOM Promise guts.
This removes all the parts guarded by SPIDERMONKEY_PROMISE
Diffstat (limited to 'dom/bindings/ToJSValue.cpp')
-rw-r--r-- | dom/bindings/ToJSValue.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/dom/bindings/ToJSValue.cpp b/dom/bindings/ToJSValue.cpp index d84428fb3..19219f432 100644 --- a/dom/bindings/ToJSValue.cpp +++ b/dom/bindings/ToJSValue.cpp @@ -7,9 +7,7 @@ #include "mozilla/dom/ToJSValue.h" #include "mozilla/dom/DOMException.h" #include "mozilla/dom/Exceptions.h" -#ifdef SPIDERMONKEY_PROMISE #include "mozilla/dom/Promise.h" -#endif // SPIDERMONKEY_PROMISE #include "nsAString.h" #include "nsContentUtils.h" #include "nsStringBuffer.h" @@ -66,7 +64,6 @@ ToJSValue(JSContext* aCx, return true; } -#ifdef SPIDERMONKEY_PROMISE bool ToJSValue(JSContext* aCx, Promise& aArgument, JS::MutableHandle<JS::Value> aValue) @@ -74,7 +71,6 @@ ToJSValue(JSContext* aCx, Promise& aArgument, aValue.setObject(*aArgument.PromiseObj()); return true; } -#endif // SPIDERMONKEY_PROMISE } // namespace dom } // namespace mozilla |