summaryrefslogtreecommitdiffstats
path: root/js/src/jsapi.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 00:19:45 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:27 -0400
commite1e313f3b6905c39a4b78a2e6cc918238540aeb2 (patch)
tree726f7cbde8c28de59abddfcbbf47744a126c0db1 /js/src/jsapi.cpp
parent31c0c2f9cc71f8ff1d8c183d38449693ec7ca502 (diff)
downloadUXP-e1e313f3b6905c39a4b78a2e6cc918238540aeb2.tar
UXP-e1e313f3b6905c39a4b78a2e6cc918238540aeb2.tar.gz
UXP-e1e313f3b6905c39a4b78a2e6cc918238540aeb2.tar.lz
UXP-e1e313f3b6905c39a4b78a2e6cc918238540aeb2.tar.xz
UXP-e1e313f3b6905c39a4b78a2e6cc918238540aeb2.zip
1320408 - Part 20: Change PromiseObject::resolve and PromiseObject::reject to static method.
Diffstat (limited to 'js/src/jsapi.cpp')
-rw-r--r--js/src/jsapi.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp
index 28282e384..e73865265 100644
--- a/js/src/jsapi.cpp
+++ b/js/src/jsapi.cpp
@@ -4925,8 +4925,8 @@ ResolveOrRejectPromise(JSContext* cx, JS::HandleObject promiseObj, JS::HandleVal
}
return reject
- ? promise->reject(cx, resultOrReason)
- : promise->resolve(cx, resultOrReason);
+ ? PromiseObject::reject(cx, promise, resultOrReason)
+ : PromiseObject::resolve(cx, promise, resultOrReason);
}
JS_PUBLIC_API(bool)