Is it intentional that #partial_value calls on_load?#1016
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
It is yes. |
|
I was wondering what would happen if incomplete data were passed to By the way, passing keyword arguments like |
Yes, it's because like all of JSON, there is actually no keyword arguments, it's all option hashes. I would like to transition to keyword arguments for all of But perhaps |
Currently
#partial_valuesometimes callson_load. Is this intentional?If it is, the
in_uselock has to cover#partial_valuetoo: otherwise touching the parser from withinon_loadtriggers a use-after-free.The fix in this PR holds
in_usefor the duration of#partial_value, like#parsedoes.Personally,
#partial_valueis interesting, but I am not sure it has a real use case.