Skip to content

Commit 2ffa4ea

Browse files
committed
Stop caching the generator state pointer
Fix: #790 If we end up calling something that spills the state on the heap, the pointer we received is outdated and may be out of sync.
1 parent c985e8c commit 2ffa4ea

File tree

3 files changed

+116
-89
lines changed

3 files changed

+116
-89
lines changed

CHANGES.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Changes
22

3+
* Fix a regression in `JSON.pretty_generate` that could cause indentation to be off once some `#to_json` has been called.
4+
35
### 2025-04-24 (2.11.2)
46

57
* Add back `JSON::PRETTY_STATE_PROTOTYPE`. This constant was private API but is used by popular gems like `multi_json`.

0 commit comments

Comments
 (0)