Commit ee15e86c authored by Kamal Marhubi's avatar Kamal Marhubi

Ensure there is remaining input in nextChar

parent 8cafa9a6
......@@ -474,6 +474,7 @@ public:
}
char nextChar() {
KJ_REQUIRE(remaining_.size() > 0, "JSON message ends prematurely.");
return remaining_.front();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment