diff options
| author | Aaron Patterson <tenderlove@ruby-lang.org> | 2024-01-22 11:24:34 -0800 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2024-01-22 12:02:03 -0800 |
| commit | 7db683222528ca4850fed57529679e5aa14b0a88 (patch) | |
| tree | 6e2b554e993347054cc6021c9ad51caf3df94643 /include/ruby | |
| parent | 1236cad92d509c299f0199c69ed752ea92f21023 (diff) | |
Fix compiling rescue + ensure
When we're compiling begin / rescue / ensure nodes, we need to "wrap"
the code in the begin statements correctly. The wrapping is like this:
(ensure code (rescue code (begin code)))
This patch pulls the each leg in to its own function, then calls the
appropriate wrapping function depending on whether there are ensure /
rescue legs.
Fixes: https://github.com/ruby/prism/issues/2221
Diffstat (limited to 'include/ruby')
0 files changed, 0 insertions, 0 deletions
