diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-01-23 12:11:21 -0800 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-24 09:40:30 -0800 |
| commit | 7a33a1aee2739598fc5b17cfd6f31e20769fee28 (patch) | |
| tree | d7bef155ef28aafdd0bee11a97a2975d04b5b7db /include/ruby/internal/encoding | |
| parent | 927928badb1a53aae6b29e65627720d7cb6cfdd7 (diff) | |
Insert all locals in the locals index table
Prism provides an index (local_body_index) which is supposed to point at
the start of locals declared in the method body. Prism assumed that
method body locals would only occur _after_ parameter names.
Unfortunately this assumption is not correct, which meant that we would
in some cases not insert all locals in the local table. This commit
iterates over locals a second time, inserting any that didn't get
inserted on the first pass.
Fixes: https://github.com/ruby/prism/issues/2245
Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com>
Diffstat (limited to 'include/ruby/internal/encoding')
0 files changed, 0 insertions, 0 deletions
