diff --git a/src/core/lib/Stream.mjs b/src/core/lib/Stream.mjs index 0230b26a..8e941716 100644 --- a/src/core/lib/Stream.mjs +++ b/src/core/lib/Stream.mjs @@ -213,8 +213,7 @@ export default class Stream { * @param {Number} val */ consumeWhile(val) { - while ((this.position < this.length) && (this.bytes[(this.position++)] === val)) - this.position--; + while ((++this.position < this.length) && (this.bytes[(this.position)] === val)); } /**