Project

General

Profile

« Previous | Next » 

Revision 2f0f9523

Added by st0012 (Stan Lo) almost 2 years ago

[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