This commit is contained in:
Kartik K. Agaram 2021-08-10 20:49:50 -07:00
parent 622d9e4016
commit e6d6a9e4df
1 changed files with 2 additions and 2 deletions

View File

@ -246,7 +246,7 @@ fn slurp-json-string in: (addr stream byte), out: (addr stream byte) {
var eof?/eax: boolean <- stream-empty? in
compare eof?, 0/false
break-if-=
abort "next-json-string: truncated"
abort "slurp-json-string: truncated"
}
var c/eax: byte <- read-byte in
{
@ -275,7 +275,7 @@ fn next-json-string in: (addr stream byte), out: (addr stream byte) {
var eof?/eax: boolean <- stream-empty? in
compare eof?, 0/false
break-if-=
abort "slurp-json-string: truncated"
abort "next-json-string: truncated"
}
var c/eax: byte <- read-byte in
compare c, 0x22/double-quote