summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2025-11-22 13:59:16 +0100
committergit <svn-admin@ruby-lang.org>2025-11-26 14:47:27 +0000
commit98a9667736f56336c920770095f9c367add2257b (patch)
tree595ef4299c4ce13f4cfd44414c82e1b94b1dcb78 /test/ruby
parent4b8ec8c9fc79859456661381e3e138ecc3e8c298 (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')
0 files changed, 0 insertions, 0 deletions