Jean Boussier 8a44311680 [ruby/json] Also don't compute ResumableParser cursor position for warning
Same reason we don't for errors, since the resumable parser doesn't
keep the entire stream in memory, it can't always be accurate, and
the buffer may even have been freed.

Anyway, for a long lived stream, it wouldn't be very helpful either.

Also adds some assertions to ensure the buffer liveness.

https://github.com/ruby/json/commit/2c332bfe2b
2026-07-31 06:22:00 +00:00
..