summaryrefslogtreecommitdiff
path: root/dom/bindings/ToJSValue.cpp
diff options
context:
space:
mode:
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 19219f4321..7afff41e2a 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