summaryrefslogtreecommitdiffstats
path: root/js/src/builtin/Promise.h
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-12-13 20:13:07 -0500
committerGaming4JC <g4jc@hyperbola.info>2019-12-17 06:25:22 -0500
commitcb732e5fdda3528f18aee6a761354fe8c1b7c274 (patch)
tree3850f7f47212d30379b0bac98658fc9ac39a31b1 /js/src/builtin/Promise.h
parentf589ef816682918dddaf13f9dc06aae5253cd56a (diff)
downloadUXP-cb732e5fdda3528f18aee6a761354fe8c1b7c274.tar
UXP-cb732e5fdda3528f18aee6a761354fe8c1b7c274.tar.gz
UXP-cb732e5fdda3528f18aee6a761354fe8c1b7c274.tar.lz
UXP-cb732e5fdda3528f18aee6a761354fe8c1b7c274.tar.xz
UXP-cb732e5fdda3528f18aee6a761354fe8c1b7c274.zip
Bug 336705 - Part 1: Support creating and resolving Promises without resolve/reject functions.
Useful for internally-created Promises that'll only ever be resolved/rejected internally. Tag #1287
Diffstat (limited to 'js/src/builtin/Promise.h')
-rw-r--r--js/src/builtin/Promise.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/builtin/Promise.h b/js/src/builtin/Promise.h
index 6a6453e46..8f716dfbc 100644
--- a/js/src/builtin/Promise.h
+++ b/js/src/builtin/Promise.h
@@ -44,6 +44,8 @@ class PromiseObject : public NativeObject
static PromiseObject* create(JSContext* cx, HandleObject executor,
HandleObject proto = nullptr, bool needsWrapping = false);
+ static PromiseObject* createSkippingExecutor(JSContext* cx);
+
static JSObject* unforgeableResolve(JSContext* cx, HandleValue value);
static JSObject* unforgeableReject(JSContext* cx, HandleValue value);