diff --git a/util/RangeIterable.js b/util/RangeIterable.js index 586afa9f7..8ee8f2f64 100644 --- a/util/RangeIterable.js +++ b/util/RangeIterable.js @@ -273,7 +273,11 @@ export class RangeIterable { return result; } } - let result = resolvedResult ?? iterator.next(); + let result; + if (resolvedResult != undefined) { + result = resolvedResult; + resolvedResult = undefined; + } else result = iterator.next(); if (result.then) { if (!options.async) throw new Error(