@@ -418,23 +418,22 @@ func Source(unsupportedJSFeatures compat.JSFeature) logger.Source {
418418 var resume = (k, v, yes, no) => {
419419 try {
420420 var x = generator[k](v), isAwait = (v = x.value) instanceof __await, done = x.done
421- return q = Promise.resolve(isAwait ? v[0] : v)
421+ Promise.resolve(isAwait ? v[0] : v)
422422 .then(y => isAwait
423423 ? resume(k === 'return' ? k : 'next', v[1] ? { done: y.done, value: y.value } : y, yes, no)
424424 : yes({ value: y, done }))
425425 .catch(e => resume('throw', e, yes, no))
426426 } catch (e) {
427- q = Promise.resolve()
428427 no(e)
429428 }
430429 }, method = (k, call, wait, clear) => it[k] = x => (
431430 call = new Promise((yes, no, run) => (
432- run = () => resume(k, x, yes, no),
433- queue ? queue .then(run) : run())),
434- clear = () => queue === wait && (queue = void 0),
435- queue = wait = call.then(clear, clear),
431+ run = () => resume(k, x, yes, no),
432+ q ? q .then(run) : run())),
433+ clear = () => q === wait && (q = 0),
434+ q = wait = call.then(clear, clear),
436435 call
437- ), q, queue, it = {}
436+ ), q, it = {}
438437 return generator = generator.apply(__this, __arguments),
439438 it[__knownSymbol('asyncIterator')] = () => it,
440439 method('next'),
0 commit comments