diff options
| author | Jeremy Evans <code@jeremyevans.net> | 2024-07-05 08:15:47 -0700 |
|---|---|---|
| committer | Benoit Daloze <eregontp@gmail.com> | 2024-07-06 12:07:32 +0200 |
| commit | 7f1fe5f091db3b05c3970e7b7a7c602922729642 (patch) | |
| tree | 46556fa497c22cb407f2071bf707670f45e2766d /include/ruby/internal | |
| parent | e240fc9c3c154349e3b93716db82b06541e07cf8 (diff) | |
Raise a TypeError for Thread#thread_variable{?,_get} for non-symbol
Previously, a TypeError was not raised if there were no thread
variables, because the conversion to symbol was done after that
check. Convert to symbol before checking for whether thread
variables are set to make the behavior consistent.
Fixes [Bug #20606]
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions
