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
|
||||
// chunk boundary. These go in the reserve past `stackEnd`, so they don't
|
||||
// spend the caller's nesting budget and can't make the parser overflow on
|
||||
// input it would have accepted in one piece. See kTransientSymbols for why
|
||||
// the reserve is big enough to always succeed.
|
||||
// chunk boundary. Unlike push(), these may grow past `stackEnd` into the
|
||||
// reserve, so they don't spend the caller's nesting budget and can never make
|
||||
// the parser overflow on input it would have accepted in one piece. See
|
||||
// kTransientSymbols for why the reserve is big enough to always succeed.
|
||||
[[nodiscard]] WeaselJsonStatus
|
||||
pushTransient(std::initializer_list<Symbol> symbols) {
|
||||
assert(ptrdiff_t(symbols.size()) <= kTransientSymbols);
|
||||
|
||||
Reference in new issue
Block a user