summaryrefslogtreecommitdiff
path: root/include/ruby/internal/encoding/string.h
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2025-11-27 16:12:17 +0100
committergit <svn-admin@ruby-lang.org>2025-12-03 13:49:05 +0000
commit54a73a57a292d8d7e88cadd3fd8454a3084a60e9 (patch)
tree6ec77d7bbab4c0c468beb79210831799310b1e55 /include/ruby/internal/encoding/string.h
parent4d377c8c2eedc42f274b3b2a841fa24d5b4c5541 (diff)
[ruby/json] Test and restore behavior around to_json changing depth
When serializing an Array, and one of the elements of the Array requires calling `to_json`, if the depth is changed, it will be used for the next entries, which wasn't the case before https://github.com/ruby/json/commit/5abd43490714, and is not the case with TruffleRuby and JRuby. Additionally, with TruffleRuby and JRuby the state's depth after the `to_json` call is used to close the Array, which isn't the case with CRuby. https://github.com/ruby/json/commit/386b36fde5
Diffstat (limited to 'include/ruby/internal/encoding/string.h')
0 files changed, 0 insertions, 0 deletions