archives

« Bugzilla Issues Index

#2683 — 7.5.4-7.5.6 Need to define PromiseAll, PromiseCatch, PromiseThen



*** Bug 2879 has been marked as a duplicate of this bug. ***


PromiseThen(p, f) is meant to be equivalent to Promise.prototype.then.call(p, f), using the original Promise.prototype.then. It is only used where p is statically known to be a Promise and f a Function.

Similarly PromiseCatch(p, f) is like Promise.prototype.catch.call(p, f).

PromiseAll(promiseList) is like Promise.all(CreateArrayFromList(promiseList)).

(As a minor point, I think it would be nice to implement Promise.all in terms of PromiseAll rather than the other way around.)


fixed in rev28 editor's draft


fixed in rev28