Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
507be6f0a2 |
+4
-4
@@ -167,10 +167,10 @@ struct Parser3 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Push tokenizer progress symbols for a literal or escape that straddles a
|
// Push tokenizer progress symbols for a literal or escape that straddles a
|
||||||
// chunk boundary. These go in the reserve past `stackEnd`, so they don't
|
// chunk boundary. Unlike push(), these may grow past `stackEnd` into the
|
||||||
// spend the caller's nesting budget and can't make the parser overflow on
|
// reserve, so they don't spend the caller's nesting budget and can never make
|
||||||
// input it would have accepted in one piece. See kTransientSymbols for why
|
// the parser overflow on input it would have accepted in one piece. See
|
||||||
// the reserve is big enough to always succeed.
|
// kTransientSymbols for why the reserve is big enough to always succeed.
|
||||||
[[nodiscard]] WeaselJsonStatus
|
[[nodiscard]] WeaselJsonStatus
|
||||||
pushTransient(std::initializer_list<Symbol> symbols) {
|
pushTransient(std::initializer_list<Symbol> symbols) {
|
||||||
assert(ptrdiff_t(symbols.size()) <= kTransientSymbols);
|
assert(ptrdiff_t(symbols.size()) <= kTransientSymbols);
|
||||||
|
|||||||
Reference in new issue
Block a user