diff options
author | André Bargull <andre.bargull@gmail.com> | 2019-11-12 17:02:16 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-11-12 17:02:16 +0100 |
commit | 899be7cedbef6678280d56a4725f2697f808bbb5 (patch) | |
tree | 3a36479c41d486699379a5ffd420c5b236774616 /js/src/builtin/Promise.h | |
parent | b00601953bade944cd6df9cde6fcdd1f10d76feb (diff) | |
download | UXP-899be7cedbef6678280d56a4725f2697f808bbb5.tar UXP-899be7cedbef6678280d56a4725f2697f808bbb5.tar.gz UXP-899be7cedbef6678280d56a4725f2697f808bbb5.tar.lz UXP-899be7cedbef6678280d56a4725f2697f808bbb5.tar.xz UXP-899be7cedbef6678280d56a4725f2697f808bbb5.zip |
Issue #1283 - Implement Promise.prototype.finally()
This resolves #1283.
Diffstat (limited to 'js/src/builtin/Promise.h')
-rw-r--r-- | js/src/builtin/Promise.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/builtin/Promise.h b/js/src/builtin/Promise.h index c76dc358c..6a6453e46 100644 --- a/js/src/builtin/Promise.h +++ b/js/src/builtin/Promise.h @@ -128,6 +128,14 @@ OriginalPromiseThen(JSContext* cx, Handle<PromiseObject*> promise, HandleValue onFulfilled, HandleValue onRejected, MutableHandleObject dependent, bool createDependent); +/** + * PromiseResolve ( C, x ) + * + * The abstract operation PromiseResolve, given a constructor and a value, + * returns a new promise resolved with that value. + */ +MOZ_MUST_USE JSObject* +PromiseResolve(JSContext* cx, HandleObject constructor, HandleValue value); MOZ_MUST_USE PromiseObject* CreatePromiseObjectForAsync(JSContext* cx, HandleValue generatorVal); |