diff options
| author | Stan Lo <stan001212@gmail.com> | 2024-02-13 13:36:29 +0000 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-02-13 13:36:32 +0000 |
| commit | 2f0f95235a1de489f50c7a9dbe3477f9f7e60cd1 (patch) | |
| tree | 9708ab201cc13b3714ba9a00b158d18cc3e6feef /include/ruby/internal/static_assert.h | |
| parent | ec26786b1a37350c0ff21666b028ec5e2aa6a318 (diff) | |
[ruby/irb] Fix SourceFinder's constant evaluation issue
(https://github.com/ruby/irb/pull/869)
Currently, if the signature's constant part is not defined, a NameError
would be raised.
```
irb(main):001> show_source Foo
(eval):1:in `<top (required)>': uninitialized constant Foo (NameError)
Foo
^^^
from (irb):1:in `<main>'
```
This commit fixes the issue and simplifies the `edit` command's implementation.
https://github.com/ruby/irb/commit/8c16e029d1
Diffstat (limited to 'include/ruby/internal/static_assert.h')
0 files changed, 0 insertions, 0 deletions
