From 3921b4f445417bee9fe6109e37ecfb9dba6d919c Mon Sep 17 00:00:00 2001 From: n1073645 Date: Wed, 13 Nov 2019 09:59:55 +0000 Subject: [PATCH] Small correction to continueWhile --- src/core/lib/Stream.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); } /**