diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2021-11-07 20:30:50 -0600 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2021-12-02 15:55:42 +0900 |
commit | 3685b5af95fc31b99b34a5a4f75bdc7c0ba622f4 (patch) | |
tree | 689f51a4dc665b8a33c055b2df24975dca598384 /lib/irb | |
parent | 3f74eaa7a83e42b31c219a534ec5330e511d2921 (diff) |
Only iterate Lexer heredoc arrays
The last element in the `@buf` may be either an array or an `Elem`. In the case it is an `Elem` we iterate over every element, when we do not need to. This check guards that case by ensuring that we only iterate over an array of elements.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/5093
Diffstat (limited to 'lib/irb')
0 files changed, 0 insertions, 0 deletions