summaryrefslogtreecommitdiffstats
path: root/dom/bindings/ToJSValue.cpp
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-12-19 03:05:45 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-12-19 03:05:45 +0100
commitd461262405813f0721f9dbb2ff57b9f82e5f9b65 (patch)
treea9c5fce75bb1a120925c27b1de4461403213794d /dom/bindings/ToJSValue.cpp
parentcdea310f1796c1ea5ffa5b49a06fcda914ea9ecb (diff)
downloadUXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar.gz
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar.lz
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.tar.xz
UXP-d461262405813f0721f9dbb2ff57b9f82e5f9b65.zip
Issue #1322 - Part 3: Remove DOM promise interface gunk
Based on work by Boris Zbarsky
Diffstat (limited to 'dom/bindings/ToJSValue.cpp')
-rw-r--r--dom/bindings/ToJSValue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dom/bindings/ToJSValue.cpp b/dom/bindings/ToJSValue.cpp
index 19219f432..7afff41e2 100644
--- a/dom/bindings/ToJSValue.cpp
+++ b/dom/bindings/ToJSValue.cpp
@@ -69,7 +69,7 @@ ToJSValue(JSContext* aCx, Promise& aArgument,
JS::MutableHandle<JS::Value> aValue)
{
aValue.setObject(*aArgument.PromiseObj());
- return true;
+ return MaybeWrapObjectValue(aCx, aValue);
}
} // namespace dom