From 95958106dd36c449c7da6f08365cb01a032b9952 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Mon, 26 Aug 2024 14:11:24 -0700 Subject: [PATCH] Bug fixes for c6 --- repl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/repl.js b/repl.js index 6427ba7..f6e945c 100644 --- a/repl.js +++ b/repl.js @@ -370,6 +370,10 @@ class InputBuffer { } return buffer.split(this.lineEnding); } + + getPointerPosition() { + return this._pointer; + } } export class REPL { @@ -537,7 +541,7 @@ export class REPL { if (this._rawByteCount >= 2) { while (bytes.length > 0) { if (this._checkpointCount == 0) { - if (bytes.slice(0, 2).match("OK") || bytes.slice(0, 3).match(">OK")) { + if (bytes.slice(0, 2).match("OK")) { this._checkpointCount++; bytes = bytes.slice(2); } else if (bytes.slice(0, 2).match("ra")) {