Skip to content

Commit

Permalink
Update deps again
Browse files Browse the repository at this point in the history
  • Loading branch information
calebporzio committed Mar 16, 2020
1 parent 2b0e0dd commit 108289e
Show file tree
Hide file tree
Showing 3 changed files with 8,608 additions and 8,306 deletions.
15 changes: 9 additions & 6 deletions dist/alpine-ie11.js
Original file line number Diff line number Diff line change
Expand Up @@ -2499,7 +2499,7 @@
return { __await: arg };
};

function AsyncIterator(generator) {
function AsyncIterator(generator, PromiseImpl) {
function invoke(method, arg, resolve, reject) {
var record = tryCatch(generator[method], generator, arg);
if (record.type === "throw") {
Expand All @@ -2510,14 +2510,14 @@
if (value &&
typeof value === "object" &&
hasOwn.call(value, "__await")) {
return Promise.resolve(value.__await).then(function(value) {
return PromiseImpl.resolve(value.__await).then(function(value) {
invoke("next", value, resolve, reject);
}, function(err) {
invoke("throw", err, resolve, reject);
});
}

return Promise.resolve(value).then(function(unwrapped) {
return PromiseImpl.resolve(value).then(function(unwrapped) {
// When a yielded Promise is resolved, its final value becomes
// the .value of the Promise<{value,done}> result for the
// current iteration.
Expand All @@ -2535,7 +2535,7 @@

function enqueue(method, arg) {
function callInvokeWithMethodAndArg() {
return new Promise(function(resolve, reject) {
return new PromiseImpl(function(resolve, reject) {
invoke(method, arg, resolve, reject);
});
}
Expand Down Expand Up @@ -2575,9 +2575,12 @@
// Note that simple async functions are implemented on top of
// AsyncIterator objects; they just return a Promise for the value of
// the final result produced by the iterator.
exports.async = function(innerFn, outerFn, self, tryLocsList) {
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
if (PromiseImpl === void 0) PromiseImpl = Promise;

var iter = new AsyncIterator(
wrap(innerFn, outerFn, self, tryLocsList)
wrap(innerFn, outerFn, self, tryLocsList),
PromiseImpl
);

return exports.isGeneratorFunction(outerFn)
Expand Down
Loading

0 comments on commit 108289e

Please sign in to comment.