summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/Promise.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-09 00:37:55 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:28 -0400
commitbd6819820961aaed4c57949341fedc57feab7403 (patch)
treeab9f917304a58671e85da23a5eebfca5536a6716 /js/src/builtin/Promise.h
parente1e313f3b6905c39a4b78a2e6cc918238540aeb2 (diff)
downloadUXP-bd6819820961aaed4c57949341fedc57feab7403.tar
UXP-bd6819820961aaed4c57949341fedc57feab7403.tar.gz
UXP-bd6819820961aaed4c57949341fedc57feab7403.tar.lz
UXP-bd6819820961aaed4c57949341fedc57feab7403.tar.xz
UXP-bd6819820961aaed4c57949341fedc57feab7403.zip
1320408 - Part 21: Change PromiseObject::onSettled to static method.
Diffstat (limited to 'js/src/builtin/Promise.h')
-rw-r--r--js/src/builtin/Promise.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/builtin/Promise.h b/js/src/builtin/Promise.h
index 87d95f154..c76dc358c 100644
--- a/js/src/builtin/Promise.h
+++ b/js/src/builtin/Promise.h
@@ -71,7 +71,7 @@ class PromiseObject : public NativeObject
static MOZ_MUST_USE bool reject(JSContext* cx, Handle<PromiseObject*> promise,
HandleValue rejectionValue);
- void onSettled(JSContext* cx);
+ static void onSettled(JSContext* cx, Handle<PromiseObject*> promise);
double allocationTime() { return getFixedSlot(PromiseSlot_AllocationTime).toNumber(); }
double resolutionTime() { return getFixedSlot(PromiseSlot_ResolutionTime).toNumber(); }