mirror of
https://github.com/ruby/ruby.git
synced 2026-08-05 22:57:15 +08:00
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