Small correction to continueWhile
This commit is contained in:
1 parent
dfd4cca43f
commit
3921b4f445
1 file changed
+1
-2
@@ -213,8 +213,7 @@ export default class Stream {
|
|||||||
* @param {Number} val
|
* @param {Number} val
|
||||||
*/
|
*/
|
||||||
consumeWhile(val) {
|
consumeWhile(val) {
|
||||||
while ((this.position < this.length) && (this.bytes[(this.position++)] === val))
|
while ((++this.position < this.length) && (this.bytes[(this.position)] === val));
|
||||||
this.position--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user