diff options
| author | Étienne Barrié <etienne.barrie@gmail.com> | 2025-11-22 13:59:16 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2025-11-26 14:47:27 +0000 |
| commit | 98a9667736f56336c920770095f9c367add2257b (patch) | |
| tree | 595ef4299c4ce13f4cfd44414c82e1b94b1dcb78 /test/ruby/test_array.rb | |
| parent | 4b8ec8c9fc79859456661381e3e138ecc3e8c298 (diff) | |
[ruby/json] Don't write depth to JSON_Generator_State in some cases
For `JSON.generate` and `JSON::State#generate_new`, don't copy
generate_json_data::depth to JSON_Generator_State::depth.
In `JSON.generate`, the JSON_Generator_State is on the stack and
discarded anyway. In `JSON::State#generate_new`, we copy the struct to
avoid mutating the original one.
https://github.com/ruby/json/commit/873b29ea34
Diffstat (limited to 'test/ruby/test_array.rb')
0 files changed, 0 insertions, 0 deletions
