http://www.html5rocks.com/en/tutorials/es6/promises/#toc-api

all is in the spec and chrome should have Promise.resolve

In utils.js:

> +};
> +
> +exports.callbackify = function (fun) {
> +  return function () {
> +    var args = Array.prototype.slice.apply(arguments);
> +    var cb = args.pop();
> +    var promise = fun.apply(this, args);
> +    if (typeof cb === 'function') {
> +      exports.promisedCallback(cb);
> +    }
> +    return promise;
> +  };
> +};
> +
> +// generic resolved promise
> +exports.resolved = new Promise(function (fulfill) { fulfill(); });

Changed but not sure of these changes. Chrome does not seem to have
Promise.resolve(). Also, is Promise.all official? (docs reference please)

--
Reply to this email directly or view it on
GitHub<https://github.com/pouchdb/mapreduce/pull/100/files#r11462424>
.